diff --git a/project/SPT.Debugging/Patches/ExfilDumper.cs b/project/SPT.Debugging/Patches/ExfilDumper.cs index fbe32dd..f541f16 100644 --- a/project/SPT.Debugging/Patches/ExfilDumper.cs +++ b/project/SPT.Debugging/Patches/ExfilDumper.cs @@ -15,7 +15,7 @@ namespace SPT.Debugging.Patches { internal class ExfilDumper : ModulePatch { - public static string DumpFolder = Path.Combine(Environment.CurrentDirectory, "ExfilDumps"); + public static string DumpFolder = Path.Combine(Environment.CurrentDirectory, "Dumps"); protected override MethodBase GetTargetMethod() { diff --git a/project/SPT.Debugging/Patches/StaticLootDumper.cs b/project/SPT.Debugging/Patches/StaticLootDumper.cs index 8b58334..3acfe62 100644 --- a/project/SPT.Debugging/Patches/StaticLootDumper.cs +++ b/project/SPT.Debugging/Patches/StaticLootDumper.cs @@ -13,7 +13,7 @@ namespace SPT.Debugging.Patches { public class StaticLootDumper : ModulePatch { - public static string DumpFolder = Path.Combine(Environment.CurrentDirectory, "StaticDumps"); + public static string DumpFolder = Path.Combine(Environment.CurrentDirectory, "Dumps"); protected override MethodBase GetTargetMethod() { @@ -65,9 +65,9 @@ namespace SPT.Debugging.Patches }); string jsonString = JsonConvert.SerializeObject(containersData, Formatting.Indented); - - string outputFile = Path.Combine(DumpFolder, $"{mapName}.json"); - if (File.Exists(outputFile)) + string outputFile = Path.Combine(DumpFolder, $"{mapName}", $"statics.json"); + Directory.CreateDirectory(Path.GetDirectoryName(outputFile)); + if (File.Exists(outputFile)) { File.Delete(outputFile); }