diff --git a/Makefile.am b/Makefile.am index 7589490d..986d2e2a 100644 --- a/Makefile.am +++ b/Makefile.am @@ -8,6 +8,7 @@ include $(srcdir)/input/Makefile.am.inc include $(srcdir)/mappers/Makefile.am.inc # include mbshare/Makefile.am.inc include $(srcdir)/drivers/common/Makefile.am.inc +include $(srcdir)/drivers/pc/Makefile.am.inc fceu_SOURCES += $(sexyal_SOURCES) fceu_SOURCES += $(fceud_SOURCES) diff --git a/boards/sl1632.cpp b/boards/sl1632.cpp index 0e95d47c..6f8d7cd8 100644 --- a/boards/sl1632.cpp +++ b/boards/sl1632.cpp @@ -21,13 +21,13 @@ #include "mapinc.h" #include "mmc3.h" -static uint8 chrcmd[8], prg0, prg1, brk, mirr; +static uint8 chrcmd[8], prg0, prg1, brck, mirr; static SFORMAT StateRegs[]= { {chrcmd, 8, "CHRCMD"}, {&prg0, 1, "PRG0"}, {&prg1, 1, "PRG1"}, - {&brk, 1, "BRK"}, + {&brck, 1, "BRK"}, {&mirr, 1, "MIRR"}, {0} }; @@ -54,9 +54,9 @@ static DECLFW(UNLSL1632CMDWrite) // FCEU_printf("bs %04x %02x %3d\n",A,V,scanline); if((A&0xA131)==0xA131) { - brk=V; + brck=V; } - if(brk&2) + if(brck&2) { FixMMC3PRG(MMC3_cmd); FixMMC3CHR(MMC3_cmd); @@ -86,7 +86,7 @@ static DECLFW(UNLSL1632CMDWrite) static void StateRestore(int version) { - if(brk&2) + if(brck&2) { FixMMC3PRG(MMC3_cmd); FixMMC3CHR(MMC3_cmd); diff --git a/drivers/pc/input.cpp b/drivers/pc/input.cpp index 1743b535..54c5c577 100644 --- a/drivers/pc/input.cpp +++ b/drivers/pc/input.cpp @@ -33,7 +33,7 @@ int UsrInputType[3]={SI_GAMEPAD,SI_GAMEPAD,SIFC_NONE}; int InputType[3]={0,0,0}; static int cspec=0; -int gametype=0; +extern int gametype; /* Necessary for proper GUI functioning(configuring when a game isn't loaded). */ void InputUserActiveFix(void) diff --git a/drivers/pc/main.cpp b/drivers/pc/main.cpp index 4be0d222..cc5a64ef 100644 --- a/drivers/pc/main.cpp +++ b/drivers/pc/main.cpp @@ -70,7 +70,7 @@ int eoptions=0; static void DriverKill(void); static int DriverInitialize(FCEUGI *gi); -int gametype; +int gametype = 0; FCEUGI *CurGame=NULL; @@ -543,11 +543,8 @@ void FCEUD_Update(uint8 *XBuf, int32 *Buffer, int Count) /* Maybe ifndef WXWINDOWS would be better? ^_^ */ -#ifndef EXTGUI FILE *FCEUD_UTF8fopen(const char *fn, const char *mode) { - return(fopen(fn,mode)); + return(fopen(fn,mode)); } - -#endif diff --git a/sound.h b/sound.h index 8eb8912c..3a3c106a 100644 --- a/sound.h +++ b/sound.h @@ -65,4 +65,4 @@ void FCEUSND_LoadState(int version); void FASTAPASS(1) FCEU_SoundCPUHook(int); void FP_FASTAPASS(2) Write_IRQFM (uint32 A, uint8 V); //mbg merge 7/17/06 brought over from latest mmbuild -#endif \ No newline at end of file +#endif