Skip to content

Commit

Permalink
Backport add missing StateRestore on mapper 354
Browse files Browse the repository at this point in the history
  • Loading branch information
LibretroAdmin committed Jul 20, 2024
1 parent d2557ae commit 5d6b3da
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions src/boards/354.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
2 changes: 1 addition & 1 deletion src/boards/addrlatch.c
Original file line number Diff line number Diff line change
Expand Up @@ -836,4 +836,4 @@ static void M464Sync(void) {

void Mapper464_Init(CartInfo *info) {
Latch_Init(info, M464Sync, NULL, 0x0000, 0x8000, 0xFFFF, 1);
}
}

0 comments on commit 5d6b3da

Please sign in to comment.