Some MSVC / C89 buildfixes

This commit is contained in:
twinaphex
2021-09-25 03:41:39 +02:00
parent afe2b4d965
commit 6881c1fd2a
5 changed files with 16 additions and 10 deletions

View File

@@ -91,7 +91,7 @@ static void power(void)
SetWriteHandler(0x6000, 0x7FFF, CartBW);
}
static void reset()
static void reset(void)
{
memset(reg, 0, sizeof(reg));
sync();
@@ -99,13 +99,14 @@ static void reset()
void Mapper558_Init (CartInfo *info)
{
uint8 *WRAM;
uint32 WRAMSIZE = info->PRGRamSize + (info->PRGRamSaveSize &~0x7FF);
info->Power = power;
info->Reset = reset;
GameHBIRQHook = hblank;
AddExState(StateRegs, ~0, 0, 0);
uint8* WRAM = (uint8*) FCEU_gmalloc(WRAMSIZE);
WRAM = (uint8*) FCEU_gmalloc(WRAMSIZE);
SetupCartPRGMapping(0x10, WRAM, WRAMSIZE, 1);
FCEU_CheatAddRAM(WRAMSIZE >> 10, 0x6000, WRAM);
haveEEPROM =!!(info->PRGRamSaveSize &0x200);