Synth disassembly in XML instead of bytecode

This commit is contained in:
dexy
2022-01-12 01:45:22 +11:00
Unverified
parent 8d257f6045
commit e76e854ead
2 changed files with 425 additions and 192 deletions
+15 -1
View File
@@ -2753,6 +2753,7 @@ namespace CodeWalker.GameFiles
bool savetest = true;
bool xmltest = true;
bool asmtest = true;
foreach (RpfFile rpf in RpfMan.AllRpfs)
{
@@ -2814,7 +2815,7 @@ namespace CodeWalker.GameFiles
if (rel3.RelDatasSorted?.Length != rel.RelDatasSorted?.Length)
{ } //check nothing went missing...
data = rel3.Save(); //full roundtrip!
if (data != null)
{
@@ -2847,6 +2848,19 @@ namespace CodeWalker.GameFiles
}
if (asmtest)
{
if (rel.RelType == RelDatFileType.Dat10ModularSynth)
{
foreach (var d in rel.RelDatasSorted)
{
if (d is Dat10Synth synth)
{
synth.TestDisassembly();
}
}
}
}
}