@@ -126,14 +126,23 @@ private void LaunchBtn_OnButtonClick(object sender, EventArgs e)
126126 }
127127 }
128128
129- private void ManualInjectBtn_Click ( object sender , EventArgs e )
129+ private void ManualInjectBtn_OnButtonClick ( object sender , EventArgs e )
130130 {
131+ if ( Updator . IsOutdated ( ) && Configuration . ShouldPreventInjection ( ) )
132+ {
133+ Logger . Write ( "Prevented injection, updator returned out of date!" ) ;
134+ ProcessStatusCtrl . DisplayType = StatusTypes . Process_Outdated ;
135+ InjectTmr . Stop ( ) ;
136+ return ;
137+ }
138+
131139 if ( ! Configuration . ShouldInjectAll ( ) )
132140 {
133141 List < Process > processes = ProcessManager . GetFilteredProcesses ( LibraryManager . Settings . ProcessName ) ;
134142
135143 if ( processes . Count > 0 )
136144 {
145+ Logger . Write ( "Process found!" ) ;
137146 LogInjectionResult ( LibraryManager . TryLoadIndividual ( processes [ 0 ] , Storage . GetLibraryFile ( ) ) ) ;
138147 }
139148 }
@@ -143,6 +152,8 @@ private void ManualInjectBtn_Click(object sender, EventArgs e)
143152
144153 if ( results . Count > 0 )
145154 {
155+ Logger . Write ( "Process found!" ) ;
156+
146157 foreach ( InjectionResults result in results )
147158 {
148159 LogInjectionResult ( result ) ;
@@ -175,6 +186,11 @@ private void AutoInstallBx_OnCheckChanged(object sender, EventArgs e)
175186 private void PreventInjectionBx_OnCheckChanged ( object sender , EventArgs e )
176187 {
177188 Configuration . PreventInjection . SetValue ( PreventInjectionBx . BoxChecked ) . Save ( ) ;
189+
190+ if ( AutoCheckUpdatesBx . BoxChecked )
191+ {
192+ CheckForUpdates ( true ) ;
193+ }
178194 }
179195
180196 private void RunOnStartupBx_OnCheckChanged ( object sender , EventArgs e )
@@ -329,6 +345,7 @@ private void OpenFolderBtn_OnButtonClick(object sender, EventArgs e)
329345 private void ExportLogsBtn_OnButtonClick ( object sender , EventArgs e )
330346 {
331347 Architecture . Path modulePath = Storage . GetModulePath ( ) ;
348+ Architecture . Path launchPath = ( modulePath / "Settings" / "Launcher.cr" ) ;
332349 Architecture . Path variablesPath = ( modulePath / "Settings" / "Variables.cr" ) ;
333350 Architecture . Path logsPath = ( Storage . GetGamesPath ( ) / "TAGame" / "Logs" ) ;
334351
@@ -357,6 +374,11 @@ private void ExportLogsBtn_OnButtonClick(object sender, EventArgs e)
357374 }
358375 }
359376
377+ if ( launchPath . Exists ( ) )
378+ {
379+ filesToExport . Add ( launchPath . GetPath ( ) ) ;
380+ }
381+
360382 if ( variablesPath . Exists ( ) )
361383 {
362384 filesToExport . Add ( variablesPath . GetPath ( ) ) ;
@@ -462,6 +484,8 @@ private void ProcessTmr_Tick(object sender, EventArgs e)
462484
463485 if ( ( ProcessStatusCtrl . DisplayType != StatusTypes . Process_Injecting ) && ( ProcessStatusCtrl . DisplayType != StatusTypes . Process_Manual ) )
464486 {
487+ Logger . Write ( "Process is running!" ) ;
488+
465489 if ( ! Updator . IsOutdated ( ) )
466490 {
467491 CheckForUpdates ( true , false ) ;
@@ -474,6 +498,7 @@ private void ProcessTmr_Tick(object sender, EventArgs e)
474498
475499 if ( Updator . IsOutdated ( ) && Configuration . ShouldPreventInjection ( ) )
476500 {
501+ Logger . Write ( "Prevented injection, updator returned out of date!" ) ;
477502 ProcessStatusCtrl . DisplayType = StatusTypes . Process_Outdated ;
478503 InjectTmr . Stop ( ) ;
479504 }
@@ -542,6 +567,7 @@ private void InjectTmr_Tick(object sender, EventArgs e)
542567
543568 if ( processes . Count > 0 )
544569 {
570+ Logger . Write ( "Process found!" ) ;
545571 LogInjectionResult ( LibraryManager . TryLoadIndividual ( processes [ 0 ] , Storage . GetLibraryFile ( ) ) ) ;
546572 }
547573
@@ -553,6 +579,8 @@ private void InjectTmr_Tick(object sender, EventArgs e)
553579
554580 if ( results . Count > 0 )
555581 {
582+ Logger . Write ( "Process found!" ) ;
583+
556584 foreach ( InjectionResults result in results )
557585 {
558586 LogInjectionResult ( result ) ;
@@ -1091,8 +1119,9 @@ private async Task<bool> CheckForUpdates(bool bInvalidate, bool bShowPrompt = tr
10911119 {
10921120 List < Process > processes = ProcessManager . GetFilteredProcesses ( LibraryManager . Settings . ProcessName ) ;
10931121
1094- if ( processes . Count > 0 && LibraryManager . IsModuleLoaded ( processes [ 0 ] , true ) )
1122+ if ( ( processes . Count > 0 ) && LibraryManager . IsModuleLoaded ( processes [ 0 ] , true ) )
10951123 {
1124+ Logger . Write ( "Process found!" ) ;
10961125 UpdatePopup . UpdateType = CRUpdate . UpdateLayouts . Running ;
10971126 }
10981127 else
0 commit comments