Backport add missing StateRestore on mapper 354

This commit is contained in:
libretroadmin
2024-07-20 18:23:16 +02:00
parent d2557ae061
commit 5d6b3dab7c
2 changed files with 6 additions and 1 deletions

View File

@@ -84,10 +84,15 @@ static void Mapper354_Power(void)
Mapper354_Sync();
}
static void Mapper354_StateRestore(int version) {
Mapper354_Sync();
}
void Mapper354_Init(CartInfo *info)
{
submapper = info->submapper;
info->Power =Mapper354_Power;
info->Reset =Mapper354_Reset;
GameStateRestore = Mapper354_StateRestore;
AddExState(StateRegs, ~0, 0, 0);
}

View File

@@ -836,4 +836,4 @@ static void M464Sync(void) {
void Mapper464_Init(CartInfo *info) {
Latch_Init(info, M464Sync, NULL, 0x0000, 0x8000, 0xFFFF, 1);
}
}