X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?p=fceu.git;a=blobdiff_plain;f=ines.c;h=ad1e9268140a50219598cc62040fbaac21a6c1e1;hp=8e244ae0350240519333dc86e242fa6ea40d6f24;hb=078eb4c0d0ff99a90f5ea0f9a9dbf9ec780650cc;hpb=e7f5287861e2da956537a6db8abb26f9a26255f8 diff --git a/ines.c b/ines.c index 8e244ae..ad1e926 100644 --- a/ines.c +++ b/ines.c @@ -80,7 +80,7 @@ static DECLFR(TrainerRead) return(trainerpoo[A&0x1FF]); } -static void iNESGI(int h) +static void iNESGI(int h, void *param) { switch(h) { @@ -121,7 +121,16 @@ static void iNESGI(int h) if(trainerpoo) {FCEU_gfree(trainerpoo);trainerpoo=0;} } break; - } + case GI_INFOSTRING: + { + int MapperNo; + MapperNo = (head.ROM_type>>4); + MapperNo|=(head.ROM_type2&0xF0); + sprintf(param, "iNES, %s, Mapper: %d%s%s", PAL?"PAL":"NTSC", + MapperNo, (head.ROM_type&2)?", BB":"", (head.ROM_type&4)?", T":""); + } + break; + } } uint32 iNESGameCRC32=0; @@ -1110,8 +1119,3 @@ static int NewiNES_Init(int num) return(0); } -iNES_HEADER *iNESGetHead(void) -{ - return &head; -} -