mirror of
https://github.com/kwsch/NHSE.git
synced 2026-04-26 08:38:17 -05:00
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.
33 lines
1.1 KiB
C#
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);
|
|
}
|
|
} |