Removed some warnings
This commit is contained in:
parent
2c5c3a9fe4
commit
e1c20e4928
|
@ -78,7 +78,6 @@
|
|||
#include "../ines.h"
|
||||
|
||||
const int ROM_CHIP = 0x00;
|
||||
const int WRAM_CHIP = 0x10;
|
||||
const int CFI_CHIP = 0x11;
|
||||
const int FLASH_CHIP = 0x12;
|
||||
|
||||
|
@ -391,7 +390,7 @@ static void AA6023Power(void) {
|
|||
SetReadHandler(0x8000, 0xFFFF, CartBR);
|
||||
}
|
||||
|
||||
static void AA6023Restore(void) {
|
||||
static void AA6023Restore(int version) {
|
||||
FixMMC3PRG(MMC3_cmd);
|
||||
FixMMC3CHR(MMC3_cmd);
|
||||
}
|
||||
|
@ -440,6 +439,7 @@ void CommonInit(CartInfo* info, int submapper)
|
|||
info->Power = AA6023Power;
|
||||
info->Reset = AA6023Reset;
|
||||
info->Close = AA6023Close;
|
||||
GameStateRestore = AA6023Restore;
|
||||
|
||||
flash_save = info->battery;
|
||||
|
||||
|
|
|
@ -447,7 +447,6 @@ static DECLFW(COOLGIRL_Flash_Write) {
|
|||
(flash_buffer_a[2] == 0x0AAA) && (flash_buffer_v[2] == 0xA0))
|
||||
{
|
||||
int sector = prg_bank_a_mapped * 0x2000 / FLASH_SECTOR_SIZE;
|
||||
uint32 sector_address = sector * FLASH_SECTOR_SIZE;
|
||||
uint32 flash_addr = prg_bank_a_mapped * 0x2000 + (A % 0x8000);
|
||||
if (SAVE_FLASH[flash_addr % SAVE_FLASH_SIZE] != 0xFF) {
|
||||
FCEU_PrintError("Error: can't write to 0x%08x, flash sector is not erased.\n", flash_addr);
|
||||
|
|
Loading…
Reference in New Issue