diff --git a/CHANGELOG.md b/CHANGELOG.md index 664c9a7..21ce209 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/MOP/src/Common/BugReporter.cs b/MOP/src/Common/BugReporter.cs index ce7114e..d4f9cd5 100644 --- a/MOP/src/Common/BugReporter.cs +++ b/MOP/src/Common/BugReporter.cs @@ -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(); } } diff --git a/MOP/src/Helpers/SaveManager.cs b/MOP/src/Helpers/SaveManager.cs index 489371c..63c557f 100644 --- a/MOP/src/Helpers/SaveManager.cs +++ b/MOP/src/Helpers/SaveManager.cs @@ -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; readonly static ES2Settings setting = new ES2Settings();