Skip to content
This repository has been archived by the owner on Aug 11, 2023. It is now read-only.

Commit

Permalink
Add options.txt to bug report
Browse files Browse the repository at this point in the history
  • Loading branch information
Athlon007 committed Aug 17, 2022
1 parent 965a786 commit ad9232c
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## 3.8.2 (TBA)

### Added

- "options.txt" file is included in bug report, if user decides to include the save file

### Bug Fixes

- MOP will now load successfully, if the load screen somehow didn't load
Expand Down
6 changes: 6 additions & 0 deletions MOP/src/Common/BugReporter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,12 @@ void IncludeZip(string zipFilePath)
zip.AddFile(SaveManager.ItemsPath, "Save");
}

if (File.Exists(SaveManager.OptionsPath))
{
zip.AddFile(SaveManager.OptionsPath, "Save");
}


zip.Save();
}
}
Expand Down
1 change: 1 addition & 0 deletions MOP/src/Helpers/SaveManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ class SaveManager
{
public static string SavePath => Path.Combine(Application.persistentDataPath, "defaultES2File.txt").Replace('\\', '/');
public static string ItemsPath => Path.Combine(Application.persistentDataPath, "items.txt").Replace("\\", "/");
public static string OptionsPath => Path.Combine(Application.persistentDataPath, "options.txt").Replace("\\", "/");
static List<SaveBugs> saveBugs;

readonly static ES2Settings setting = new ES2Settings();
Expand Down

0 comments on commit ad9232c

Please sign in to comment.