@@ -34,7 +34,7 @@ namespace aum_launcher
34
34
35
35
public partial class Main : Form
36
36
{
37
- public const string LAUNCHER_VERSION = "1.0.3 " ;
37
+ public const string LAUNCHER_VERSION = "1.0.4 " ;
38
38
public const string LAUNCHER_NAME = "aum-launcher" ;
39
39
// begin update info
40
40
public const string LAUNCHER_DELETION_DIR = "AUMLAUNCHER_DELETE" ;
@@ -231,12 +231,13 @@ private void Main_Load(object sender, EventArgs e)
231
231
232
232
Logger . Log . Write ( "Current process directory: " + System . Diagnostics . Process . GetCurrentProcess ( ) . MainModule . FileName , Logger . ELogType . Info , rtxtLog , true ) ;
233
233
234
- if ( CheckForOldLaunchers ( ) ) return ;
235
234
InitializeProfileSystem ( ) ;
235
+ if ( CheckForOldLaunchers ( ) ) return ;
236
+
236
237
GameDirWorker . RunWorkerAsync ( ActiveProfile ) ;
237
238
238
239
// start github worker (first task is to fetch all releases and parse version tags)
239
- // InitializeGithubClient();
240
+ InitializeGithubClient ( ) ;
240
241
}
241
242
242
243
private void Main_FormClosing ( object sender , FormClosingEventArgs e )
@@ -257,6 +258,10 @@ private void RefreshControlsState()
257
258
lblCurrentBuild . Text = "Currently using: (" + ( ActiveProfile . UseDebugBuild ? "Debug " : "Release " ) + ( ActiveProfile . UseProxyVersion ? "Proxy" : "Injectable" ) + ")" ;
258
259
btnSwitchToProxy . Enabled = ! ActiveProfile . UseProxyVersion ;
259
260
btnSwitchToInjectable . Enabled = ActiveProfile . UseProxyVersion ;
261
+ if ( ActiveProfile . UseProxyVersion )
262
+ btnInject . Enabled = false ;
263
+ else
264
+ btnInject . Enabled = SelectedProcess != null && SelectedProcess . ActiveProcess != null ;
260
265
}
261
266
262
267
private void MenuAbout_MenuItem_Click ( object sender , EventArgs e )
@@ -453,7 +458,7 @@ private void btnSwitchToInjectable_Click(object sender, EventArgs e)
453
458
{
454
459
Logger . Log . Write ( "Could not find version.dll in game directory '" + ActiveProfile . GameDirPath + MOD_VERSION_FILENAME + "'" , Logger . ELogType . Info , rtxtLog ) ;
455
460
}
456
- btnInject . Enabled = true ;
461
+ btnInject . Enabled = SelectedProcess != null && SelectedProcess . ActiveProcess != null ;
457
462
lblCurrentBuild . Text = "Currently using: (" + ( ActiveProfile . UseDebugBuild ? "Debug " : "Release " ) + ( ActiveProfile . UseProxyVersion ? "Proxy" : "Injectable" ) + ")" ;
458
463
}
459
464
@@ -479,7 +484,7 @@ private void btnInject_Click(object sender, EventArgs e)
479
484
Injector . Inject ( SelectedProcess . ActiveProcess , pathToDll , rtxtLog ) ;
480
485
Logger . Log . Write ( "Successfully injected!" , Logger . ELogType . Notification , rtxtLog , true ) ;
481
486
StatusLbl_Injection . ForeColor = System . Drawing . Color . LimeGreen ;
482
- StatusLbl_Injection . Text = "Success!" ;
487
+ StatusLbl_Injection . Text = "Injection: Success!" ;
483
488
}
484
489
485
490
private void chboxUseDebugBuild_CheckedChanged ( object sender , EventArgs e )
0 commit comments