diff --git a/zsnes/src/patch.c b/zsnes/src/patch.c index 7537b03d..92ce1309 100644 --- a/zsnes/src/patch.c +++ b/zsnes/src/patch.c @@ -33,12 +33,12 @@ void PatchUsingIPS() unsigned char *ROM = (unsigned char *)romdata; int location = 0, length = 0; - IPSPatched = 0; - FILE *fp = 0; fp = fopen(patchfile, "rb"); if (!fp) { return; } + IPSPatched = 0; + //Yup, it's goto! :) //See 'IPSDone:' for explanation if (fgetc(fp) != 'P') { goto IPSDone; } @@ -121,3 +121,4 @@ void PatchUsingIPS() */ } +