mirror of
https://github.com/sp-tarkov/modules.git
synced 2025-02-13 09:50:43 -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
|
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()
|
protected override MethodBase GetTargetMethod()
|
||||||
{
|
{
|
||||||
|
@ -13,7 +13,7 @@ namespace SPT.Debugging.Patches
|
|||||||
{
|
{
|
||||||
public class StaticLootDumper : ModulePatch
|
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()
|
protected override MethodBase GetTargetMethod()
|
||||||
{
|
{
|
||||||
@ -65,8 +65,8 @@ namespace SPT.Debugging.Patches
|
|||||||
});
|
});
|
||||||
|
|
||||||
string jsonString = JsonConvert.SerializeObject(containersData, Formatting.Indented);
|
string jsonString = JsonConvert.SerializeObject(containersData, Formatting.Indented);
|
||||||
|
string outputFile = Path.Combine(DumpFolder, $"{mapName}", $"statics.json");
|
||||||
string outputFile = Path.Combine(DumpFolder, $"{mapName}.json");
|
Directory.CreateDirectory(Path.GetDirectoryName(outputFile));
|
||||||
if (File.Exists(outputFile))
|
if (File.Exists(outputFile))
|
||||||
{
|
{
|
||||||
File.Delete(outputFile);
|
File.Delete(outputFile);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user