mirror of
https://github.com/sp-tarkov/modules.git
synced 2025-02-13 02:50:45 -05:00
Updated map data extractor patches to save into the same file + have consistent naming systems
This commit is contained in:
parent
f0034ecc37
commit
bbbcb6b80c
@ -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()
|
||||
{
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user