X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?p=fceu.git;a=blobdiff_plain;f=unif.c;h=bcd2d3d8e02ffe11bc42c2e1750ad6cebb569f92;hp=f54ad39270d84ebcd6d93f5b560acc7bed24147a;hb=81bd66a11186efb420eb8d6fd5766f0ef26d5919;hpb=c62d28102c77e19c291c78bf6bf7f0a81abd54b9 diff --git a/unif.c b/unif.c index f54ad39..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