Oops, code wasn't standard C.

This commit is contained in:
n-a-c-h
2003-08-18 20:23:55 +00:00
parent 1cca98563b
commit a386ab340f

View File

@@ -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()
*/
}