Skip to content

Commit

Permalink
GameLauncher: Include the last registry transaction on the crash report
Browse files Browse the repository at this point in the history
This should help investigate when users are having disk mount errors for eg.
  • Loading branch information
julianxhokaxhiu committed Dec 17, 2022
1 parent 1e5cd42 commit 3817a99
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 1 addition & 3 deletions 7thHeaven.Code/RegistryHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,7 @@ public static void CommitTransaction()
{
if (transaction.Count > 0)
{
string fileName = Path.Combine(Sys.PathToTempFolder, "settings_update.bat");
string fileName = Path.Combine(Sys.PathToTempFolder, "registry_transaction.bat");

System.IO.File.WriteAllText(
fileName,
Expand All @@ -459,8 +459,6 @@ public static void CommitTransaction()
temp.WaitForExit();
}

File.Delete(fileName);

transaction.Clear();
}
catch (Exception e)
Expand Down
1 change: 1 addition & 0 deletions SeventhHeavenUI/Classes/GameLauncher.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1655,6 +1655,7 @@ private void CollectCrashReport()
archive.AddEntry("applog.txt", File.Open(Sys.PathToApplog, FileMode.Open, FileAccess.Read, FileShare.ReadWrite));
archive.AddEntry("profile.xml", Sys.PathToCurrentProfileFile);
archive.AddEntry("settings.xml", Sys.PathToSettings);
archive.AddEntry("registry_transaction.bat", Path.Combine(Sys.PathToTempFolder, "registry_transaction.bat"));

// =================================================================================================

Expand Down

0 comments on commit 3817a99

Please sign in to comment.