Pull from upstream

This commit is contained in:
NewRisingSun
2025-09-12 22:29:28 +02:00
6 changed files with 108 additions and 56 deletions

View File

@@ -95,9 +95,13 @@ static void power (void) {
SetReadHandler(0xC000, 0xCFFF, readPCM);
}
static void StateRestore(int version) {
sync();
}
void Mapper413_Init(CartInfo *info) {
pcmAddressMask =info->miscROMSize -1;
GameStateRestore =sync;
GameStateRestore =StateRestore;
GameHBIRQHook =horizontalBlanking;
info->Power = power;
AddExState(stateRegs, ~0, 0, 0);

View File

@@ -571,6 +571,10 @@ void FFE_Init(CartInfo *info) {
PPU_hook =trapPPUAddressChangeFFE;
}
static void StateRestore(int version) {
sync();
}
void Mapper561_562_Init(CartInfo *info) {
int CHRRAMSize;
maker =info->mapper ==562? VENUS: BUNG;
@@ -624,7 +628,7 @@ void Mapper561_562_Init(CartInfo *info) {
} else
trainerSize =0;
GameStateRestore =sync;
GameStateRestore =StateRestore;
info->Power =power;
info->Close =close;
if (maker ==VENUS) {