From a386ab340f1da99ce3c02f3df8057be9978651f4 Mon Sep 17 00:00:00 2001 From: n-a-c-h <> Date: Mon, 18 Aug 2003 20:23:55 +0000 Subject: [PATCH] Oops, code wasn't standard C. --- zsnes/src/patch.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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() */ } +