Skip to content

Commit

Permalink
forgot to re-enable the entire functionality
Browse files Browse the repository at this point in the history
also:
* added org icon
* tweaked some button states & status labels
  • Loading branch information
kotae4 committed Jun 8, 2021
1 parent cb92487 commit 9a39067
Show file tree
Hide file tree
Showing 6 changed files with 276 additions and 7 deletions.
2 changes: 2 additions & 0 deletions aum-launcher/Main.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 10 additions & 5 deletions aum-launcher/Main.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ namespace aum_launcher

public partial class Main : Form
{
public const string LAUNCHER_VERSION = "1.0.3";
public const string LAUNCHER_VERSION = "1.0.4";
public const string LAUNCHER_NAME = "aum-launcher";
// begin update info
public const string LAUNCHER_DELETION_DIR = "AUMLAUNCHER_DELETE";
Expand Down Expand Up @@ -231,12 +231,13 @@ private void Main_Load(object sender, EventArgs e)

Logger.Log.Write("Current process directory: " + System.Diagnostics.Process.GetCurrentProcess().MainModule.FileName, Logger.ELogType.Info, rtxtLog, true);

if (CheckForOldLaunchers()) return;
InitializeProfileSystem();
if (CheckForOldLaunchers()) return;

GameDirWorker.RunWorkerAsync(ActiveProfile);

// start github worker (first task is to fetch all releases and parse version tags)
//InitializeGithubClient();
InitializeGithubClient();
}

private void Main_FormClosing(object sender, FormClosingEventArgs e)
Expand All @@ -257,6 +258,10 @@ private void RefreshControlsState()
lblCurrentBuild.Text = "Currently using: (" + (ActiveProfile.UseDebugBuild ? "Debug " : "Release ") + (ActiveProfile.UseProxyVersion ? "Proxy" : "Injectable") + ")";
btnSwitchToProxy.Enabled = !ActiveProfile.UseProxyVersion;
btnSwitchToInjectable.Enabled = ActiveProfile.UseProxyVersion;
if (ActiveProfile.UseProxyVersion)
btnInject.Enabled = false;
else
btnInject.Enabled = SelectedProcess != null && SelectedProcess.ActiveProcess != null;
}

private void MenuAbout_MenuItem_Click(object sender, EventArgs e)
Expand Down Expand Up @@ -453,7 +458,7 @@ private void btnSwitchToInjectable_Click(object sender, EventArgs e)
{
Logger.Log.Write("Could not find version.dll in game directory '" + ActiveProfile.GameDirPath + MOD_VERSION_FILENAME + "'", Logger.ELogType.Info, rtxtLog);
}
btnInject.Enabled = true;
btnInject.Enabled = SelectedProcess != null && SelectedProcess.ActiveProcess != null;
lblCurrentBuild.Text = "Currently using: (" + (ActiveProfile.UseDebugBuild ? "Debug " : "Release ") + (ActiveProfile.UseProxyVersion ? "Proxy" : "Injectable") + ")";
}

Expand All @@ -479,7 +484,7 @@ private void btnInject_Click(object sender, EventArgs e)
Injector.Inject(SelectedProcess.ActiveProcess, pathToDll, rtxtLog);
Logger.Log.Write("Successfully injected!", Logger.ELogType.Notification, rtxtLog, true);
StatusLbl_Injection.ForeColor = System.Drawing.Color.LimeGreen;
StatusLbl_Injection.Text = "Success!";
StatusLbl_Injection.Text = "Injection: Success!";
}

private void chboxUseDebugBuild_CheckedChanged(object sender, EventArgs e)
Expand Down
Loading

0 comments on commit 9a39067

Please sign in to comment.