#include "../common/cheat.h"
#include "../../fce.h"
+#include "../../cart.h"
#include "dface.h"
{"-input1",0,&inputa[0],0x4001},{"-input2",0,&inputa[1],0x4001},
{"-fcexp",0,&fcexp,0x4001},
- {"-gg",&docheckie[1],0,0},
+ {"-gg",0,&eoptions,0x8000|EO_GG},
{"-no8lim",0,&eoptions,0x8000|EO_NO8LIM},
{"-snapname",0,&eoptions,0x8000|EO_SNAPNAME},
{"-nofs",0,&eoptions,0x8000|EO_NOFOURSCORE},
}
if(docheckie[0])
Settings.region_force=2;
- if(docheckie[1])
- FCEUI_SetGameGenie(1);
+ FCEUI_SetGameGenie(eoptions&EO_GG);
FCEUI_DisableSpriteLimitation(eoptions&EO_NO8LIM);
FCEUI_SetSnapName(eoptions&EO_SNAPNAME);
ParseGI(fceugi);
InitOtherInput();
- GameInterface(GI_INFOSTRING, infostring);
+ if ((eoptions&EO_GG) && geniestage == 0) {
+ strcpy(infostring, "gg.rom is missing, GG disabled");
+ eoptions&=~EO_GG;
+ FCEUI_SetGameGenie(0);
+ } else
+ GameInterface(GI_INFOSTRING, infostring);
FCEU_DispMessage("%s", infostring);
}
else
static void DriverKill(void)
{
// SaveConfig(NULL); // done explicitly in menu now
- SetSignals(SIG_IGN);
+ SetSignals(SIG_DFL);
if(cpalette) free(cpalette);
cpalette=0;