shithub: rgbds

Download patch

ref: b69cd0c34523a9bbb10a09ba751fb0afa7e7f565
parent: 2da63e2f7de34ee73368816d4af2304c8e77665d
author: bentley <[email protected]>
date: Wed Jan 13 06:22:56 EST 2010

-v doesn't need to modify ROM size; -p can do that

--- a/src/fix/main.c
+++ b/src/fix/main.c
@@ -546,23 +546,6 @@
 			while (filesize > (0x8000L << calcromsize))
 				calcromsize += 1;
 
-			if (calcromsize != cartromsize) {
-				if ((ulOptions & OPTF_DEBUG) == 0) {
-					fseek(f, -1, SEEK_CUR);
-					fputc(calcromsize, f);
-					fflush(f);
-				}
-				if (!(ulOptions & OPTF_QUIET)) {
-					printf("\tChanged ROM size byte from %#02x (%dKiB) to %#02x (%dKiB)\n",
-					    cartromsize,
-					    (0x8000 << cartromsize) / 1024,
-					    calcromsize,
-					    (0x8000 << calcromsize) / 1024);
-				}
-			} else if (!(ulOptions & OPTF_QUIET)) {
-				printf("\tROM size byte is OK\n");
-			}
-
 			/* Checksum */
 
 			fflush(f);