return(trainerpoo[A&0x1FF]);\r
}\r
\r
-static void iNESGI(int h)\r
+static void iNESGI(int h, void *param)\r
{\r
switch(h)\r
{\r
if(VROM) {free(VROM);VROM=0;}\r
if(MapClose) MapClose();\r
if(trainerpoo) {FCEU_gfree(trainerpoo);trainerpoo=0;}\r
+ ResetExState(0,0);\r
}\r
break;\r
- }\r
+ case GI_INFOSTRING:\r
+ {\r
+ int MapperNo;\r
+ MapperNo = (head.ROM_type>>4);\r
+ MapperNo|=(head.ROM_type2&0xF0);\r
+ sprintf(param, "iNES, %s, Mapper: %d%s%s", PAL?"PAL":"NTSC",\r
+ MapperNo, (head.ROM_type&2)?", BB":"", (head.ROM_type&4)?", T":"");\r
+ }\r
+ break;\r
+ }\r
}\r
\r
uint32 iNESGameCRC32=0;\r
return(0);\r
}\r
\r
-iNES_HEADER *iNESGetHead(void)\r
-{\r
- return &head;\r
-}\r
-\r