Some MSVC / C89 buildfixes
This commit is contained in:
@@ -82,7 +82,7 @@ static void power(void)
|
||||
SetWriteHandler(0x6000, 0x7FFF, CartBW);
|
||||
}
|
||||
|
||||
static void reset()
|
||||
static void reset(void)
|
||||
{
|
||||
memset(reg, 0, sizeof(reg));
|
||||
sync();
|
||||
@@ -90,13 +90,14 @@ static void reset()
|
||||
|
||||
void Mapper163_Init (CartInfo *info)
|
||||
{
|
||||
uint8 *WRAM;
|
||||
uint32 WRAMSIZE = info->iNES2? (info->PRGRamSize + info->PRGRamSaveSize): 8192;
|
||||
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);
|
||||
if (info->battery) {
|
||||
|
||||
Reference in New Issue
Block a user