Skip to content

Commit 9a39067

Browse files
committed
forgot to re-enable the entire functionality
also: * added org icon * tweaked some button states & status labels
1 parent cb92487 commit 9a39067

File tree

6 files changed

+276
-7
lines changed

6 files changed

+276
-7
lines changed

aum-launcher/Main.Designer.cs

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

aum-launcher/Main.cs

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ namespace aum_launcher
3434

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

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

234-
if (CheckForOldLaunchers()) return;
235234
InitializeProfileSystem();
235+
if (CheckForOldLaunchers()) return;
236+
236237
GameDirWorker.RunWorkerAsync(ActiveProfile);
237238

238239
// start github worker (first task is to fetch all releases and parse version tags)
239-
//InitializeGithubClient();
240+
InitializeGithubClient();
240241
}
241242

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

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

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

485490
private void chboxUseDebugBuild_CheckedChanged(object sender, EventArgs e)

0 commit comments

Comments
 (0)