X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?p=fceu.git;a=blobdiff_plain;f=ines.c;h=ad1e9268140a50219598cc62040fbaac21a6c1e1;hp=6665a1311e261aecddbcbd1c489156ae86d71c2a;hb=078eb4c0d0ff99a90f5ea0f9a9dbf9ec780650cc;hpb=e2d0dd92bfad989cce4270fc0ac5a712476c7c50 diff --git a/ines.c b/ines.c index 6665a13..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; @@ -916,6 +925,10 @@ static void iNESPower(void) setprg8r(1,0x6000,0); SetReadHandler(0x6000,0x7FFF,AWRAM); +#ifdef ASM_6502 + // asm code needs pages to be set again.. + Page[12]=Page[13]=Page[14]=Page[15]=WRAM-0x6000; +#endif SetWriteHandler(0x6000,0x7FFF,BWRAM); FCEU_CheatAddRAM(8,0x6000,WRAM); @@ -1106,8 +1119,3 @@ static int NewiNES_Init(int num) return(0); } -iNES_HEADER *iNESGetHead(void) -{ - return &head; -} -