Added support for nand saving in Face Training and Nintendo DS Guide (fixes #6), calculate nand save size from header, fixed Band Brothers save initialization

This commit is contained in:
Gericom
2025-12-28 17:34:06 +01:00
parent 6d12399ba4
commit 9f6311014d
10 changed files with 216 additions and 41 deletions

View File

@@ -13,7 +13,9 @@
#include "patches/arm9/OSResetSystemPatch.h"
#include "patches/arm9/PokemonDownloaderArm9Patch.h"
#include "patches/arm9/DSProtectArm9Patch.h"
#include "patches/arm9/NandSave/FaceTrainingNandSavePatch.h"
#include "patches/arm9/NandSave/JamWithTheBandNandSavePatch.h"
#include "patches/arm9/NandSave/NintendoDSGuideNandSavePatch.h"
#include "patches/arm9/NandSave/WarioWareDiyNandSavePatch.h"
#include "patches/arm9/OverlayPatches/FsStartOverlayHookPatch.h"
#include "patches/arm9/OverlayPatches/DSProtectPatches/DSProtectOverlayPatch.h"
@@ -390,6 +392,18 @@ void Arm9Patcher::AddGameSpecificPatches(
patchCollection.AddPatch(new JamWithTheBandNandSavePatch());
break;
}
// Face Training
case GAMECODE("USKV"):
{
patchCollection.AddPatch(new FaceTrainingNandSavePatch());
break;
}
// Nintendo DS Guide
case GAMECODE("UGDA"):
{
patchCollection.AddPatch(new NintendoDSGuideNandSavePatch());
break;
}
}
}