X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?p=fceu.git;a=blobdiff_plain;f=unif.c;h=bcd2d3d8e02ffe11bc42c2e1750ad6cebb569f92;hp=07ec184c134d56c5d7d18496fe1893ffdac22208;hb=92e249b10ad9e479eddb18974555366dba725ef3;hpb=af32b6c2f0ed2f1a4582c3e8d7ac704b9c61fa4c diff --git a/unif.c b/unif.c index 07ec184..bcd2d3d 100644 --- a/unif.c +++ b/unif.c @@ -27,6 +27,9 @@ #include #include #include +#ifdef GP2X +#include +#endif #include "types.h" @@ -132,7 +135,7 @@ static int DoMirroring(int fp) { uint8 t; t=FCEU_fgetc(fp); - mirrortodo=t; + mirrortodo=t; { static char *stuffo[6]={"Horizontal","Vertical","$2000","$2400","\"Four-screen\"","Controlled by Mapper Hardware"}; @@ -209,7 +212,7 @@ static int LoadPRG(int fp) else puts(""); - SetupCartPRGMapping(z,malloced[z],t,0); + SetupCartPRGMapping(z,malloced[z],t,0); return(1); } @@ -340,13 +343,13 @@ int LoadUNIFChunks(int fp) for(;;) { t=FCEU_fread(&uchead,1,4,fp); - if(t<4) + if(t<4) { if(t>0) - return 0; + return 0; return 1; } - if(!(FCEU_read32(&uchead.info,fp))) + if(!(FCEU_read32(&uchead.info,fp))) return 0; t=0; for(x=0;x