NHSE/NHSE.Tests/DumpTests.cs
Kurt 9d1309827e Pre 3.0.0 support
Adds data for supporting 3.0.0, still needs savefile structures/hash range dumped and incorporated into MainOffsets30/PersonalOffsets30. Offsets/range is currently a copy of 2.0, which is obviously not correct. Saves will fail to load as encrypted values are not at the expected offset (pls no complaints).
CTRL-I from main form still opens the injector interface; RAM offset not yet documented.
2026-01-14 11:17:15 -06:00

33 lines
1.1 KiB
C#

using System.IO;
using NHSE.Parsing;
using Xunit;
namespace NHSE.Tests;
public static class DumpTests
{
private const string RepoPath = @"C:\Users\kapho\source\repos";
private const string PatchDumpPath = @"E:\acnh\" + PatchFolderName;
private const string PatchFolderName = "v30";
private const string MessageDumpFormat = @"Message\String_{0}";
[Fact]
public static void DumpBCSV()
{
const string folder = PatchDumpPath + @"\bcsv";
Assert.SkipUnless(Directory.Exists(folder), "Directory not found, skip."); // skip this test if not properly configured for this test
GameBCSVDumper.UpdateDumps(folder, folder, true);
}
[Fact]
public static void DumpMSBT()
{
const string folder = RepoPath;
const string dump = PatchDumpPath;
Assert.SkipUnless(Directory.Exists(folder), "Repo not found, skip."); // skip this test if not properly configured for this test
Assert.SkipUnless(Directory.Exists(dump), "Dump not found, skip."); // skip this test if not properly configured for this test
GameMSBTDumperNHSE.Dump(folder, dump, MessageDumpFormat);
}
}