static int deempcnt[8];
FCEUGI FCEUGameInfo;
+FCEUGI *GameInfo = &FCEUGameInfo;
void (*GameInterface)(int h, void *param);
void FP_FASTAPASS(1) (*PPU_hook)(uint32 A);
char lastLoadedGameName [2048];
int LoadGameLastError = 0;
int UNIFLoad(const char *name, int fp);
-int iNESLoad(const char *name, int fp);
+int iNESLoad(const char *name, int fp, int OverwriteVidMode);
int FDSLoad(const char *name, int fp);
int NSFLoad(int fp);
}
GetFileBase(name2);
- if(iNESLoad(name2,fp))
+ if(iNESLoad(name2,fp,1))
goto endlseq;
if(NSFLoad(fp))
goto endlseq;
X6502_Reset();
}
-#ifndef DEBUG_ASM_6502
-static void FCEU_MemoryRand(uint8 *ptr, uint32 size)
+void FCEU_MemoryRand(uint8 *ptr, uint32 size)
{
+#ifndef DEBUG_ASM_6502
int x=0;
while(size)
{
size--;
ptr++;
}
-}
#endif
+}
void PowerNES(void)
{
GeniePower();
-#ifndef DEBUG_ASM_6502
FCEU_MemoryRand(RAM,0x800);
-#else
+#ifdef DEBUG_ASM_6502
memset(RAM,0x00,0x800);
memset(nes_internal_ram,0x00,0x800);
#endif