diff --git a/SeventhHeavenUI/Classes/GameLauncher.cs b/SeventhHeavenUI/Classes/GameLauncher.cs index d01de3de..08d4c237 100644 --- a/SeventhHeavenUI/Classes/GameLauncher.cs +++ b/SeventhHeavenUI/Classes/GameLauncher.cs @@ -682,6 +682,7 @@ public static bool LaunchGame(bool varDump, bool debug, bool launchWithNoMods = if (!didInject) { + Sys.FFNxConfig.RestoreBackup(true); return false; } @@ -690,6 +691,8 @@ public static bool LaunchGame(bool varDump, bool debug, bool launchWithNoMods = if (ff7Proc == null) { + Sys.FFNxConfig.RestoreBackup(true); + Instance.RaiseProgressChanged($"\t{ResourceHelper.Get(StringKey.FailedToGetFf7Proc)}", NLog.LogLevel.Error); return false; } @@ -844,6 +847,8 @@ public static bool LaunchGame(bool varDump, bool debug, bool launchWithNoMods = } catch (Exception e) { + Sys.FFNxConfig.RestoreBackup(true); + Logger.Error(e); Instance.RaiseProgressChanged(ResourceHelper.Get(StringKey.ExceptionOccurredWhileTryingToStart), NLog.LogLevel.Error);