Mappers 44,174,331,333,335: Reset to menu.

This commit is contained in:
NewRisingSun
2025-04-01 21:03:03 +02:00
committed by LibretroAdmin
parent 4438d28d1b
commit 7194d208d9
5 changed files with 35 additions and 0 deletions

View File

@@ -57,18 +57,25 @@ static DECLFW(WriteCHR) {
}
static void BMCCTC09Power(void) {
regs[0] =regs[1] =0;
Sync();
SetReadHandler(0x8000, 0xFFFF, CartBR);
SetWriteHandler(0x8000, 0xBFFF, WriteCHR);
SetWriteHandler(0xC000, 0xFFFF, WritePRG);
}
static void BMCCTC09Reset(void) {
regs[0] =regs[1] =0;
Sync();
}
static void StateRestore(int version) {
Sync();
}
void BMCCTC09_Init(CartInfo *info) {
info->Power = BMCCTC09Power;
info->Reset = BMCCTC09Reset;
GameStateRestore = StateRestore;
AddExState(&StateRegs, ~0, 0, 0);
}