shithub: rgbds

Download patch

ref: 77bbbba9f3d465754b9f7781f1ddd48da71b4f8a
parent: 8e9672c1ddb942048f570a844df21443fcb06159
author: anthony <[email protected]>
date: Wed Dec 30 13:58:48 EST 2009

give warning if -c/-o overwrites last character of new title

--- a/src/fix/main.c
+++ b/src/fix/main.c
@@ -481,6 +481,12 @@
 			if (!(ulOptions & OPTF_QUIET) && gbc_mode == 0xC0) {
 				printf("\tGame Boy Color only mode set\n");
 			}
+
+			if (ulOptions & OPTF_TITLE) { 
+				if (cartname[0xF]) {
+					Warning("Last character of cartridge title was overwritten by '-%c' option", gbc_mode == 0x80 ? 'c' : 'o');
+				}
+			}
 		}
 		/*
 		 * -v (Validate header) option code