mirror of
https://github.com/LNH-team/pico-loader.git
synced 2026-06-02 01:06:50 +02:00
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:
@@ -205,7 +205,11 @@ void NdsLoader::Load(BootMode bootMode)
|
||||
{
|
||||
if (bootMode != BootMode::SdkResetSystem)
|
||||
{
|
||||
HandleCardSave();
|
||||
if (!CardSaveArranger().SetupCardSave(&_romHeader, _savePath))
|
||||
{
|
||||
ErrorDisplay().PrintError("Failed to setup save file.");
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
HandleAntiPiracy();
|
||||
@@ -608,14 +612,6 @@ bool NdsLoader::TryLoadRomHeader(u32 romOffset)
|
||||
return true;
|
||||
}
|
||||
|
||||
void NdsLoader::HandleCardSave()
|
||||
{
|
||||
if (!CardSaveArranger().SetupCardSave(_romHeader.gameCode, _savePath))
|
||||
{
|
||||
ErrorDisplay().PrintError("Failed to setup save file.");
|
||||
}
|
||||
}
|
||||
|
||||
void NdsLoader::HandleAntiPiracy()
|
||||
{
|
||||
auto apList = ApListFactory().CreateFromFile(AP_LIST_PATH);
|
||||
|
||||
Reference in New Issue
Block a user