Don't save 0x6000 for MBC3 in BESS
This commit is contained in:
parent
ac5b0aca2c
commit
ea05a0c765
@ -222,7 +222,7 @@ static size_t bess_size_for_cartridge(const GB_cartridge_t *cart)
|
||||
case GB_MBC2:
|
||||
return sizeof(BESS_block_t) + 2 * sizeof(BESS_MBC_pair_t);
|
||||
case GB_MBC3:
|
||||
return sizeof(BESS_block_t) + 4 * sizeof(BESS_MBC_pair_t) + (cart->has_rtc? sizeof(BESS_RTC_t) : 0);
|
||||
return sizeof(BESS_block_t) + 3 * sizeof(BESS_MBC_pair_t) + (cart->has_rtc? sizeof(BESS_RTC_t) : 0);
|
||||
case GB_MBC5:
|
||||
return sizeof(BESS_block_t) + 4 * sizeof(BESS_MBC_pair_t);
|
||||
case GB_HUC1:
|
||||
@ -437,8 +437,7 @@ static int save_bess_mbc_block(GB_gameboy_t *gb, virtual_file_t *file)
|
||||
pairs[0] = (BESS_MBC_pair_t){LE16(0x0000), gb->mbc_ram_enable? 0xA : 0x0};
|
||||
pairs[1] = (BESS_MBC_pair_t){LE16(0x2000), gb->mbc3.rom_bank};
|
||||
pairs[2] = (BESS_MBC_pair_t){LE16(0x4000), gb->mbc3.ram_bank | (gb->mbc3_rtc_mapped? 8 : 0)};
|
||||
pairs[3] = (BESS_MBC_pair_t){LE16(0x6000), gb->rtc_latch};
|
||||
mbc_block.size = 4 * sizeof(pairs[0]);
|
||||
mbc_block.size = 3 * sizeof(pairs[0]);
|
||||
break;
|
||||
case GB_MBC5:
|
||||
pairs[0] = (BESS_MBC_pair_t){LE16(0x0000), gb->mbc_ram_enable? 0xA : 0x0};
|
||||
|
Loading…
Reference in New Issue
Block a user