Skip to content

Commit

Permalink
add missing StateRestore on mapper 354
Browse files Browse the repository at this point in the history
  • Loading branch information
zeromus committed Feb 8, 2023
1 parent ed192be commit ea6ed69
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/boards/354.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -83,10 +83,15 @@ static void Mapper354_Power(void)
Mapper354_Sync();
}

static void StateRestore(int version) {
Mapper354_Sync();
}

void Mapper354_Init(CartInfo *info)
{
submapper = info->submapper;
info->Power = Mapper354_Power;
info->Reset = Mapper354_Reset;
GameStateRestore = StateRestore;
AddExState(StateRegs, ~0, 0, 0);
}

0 comments on commit ea6ed69

Please sign in to comment.