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

This commit is contained in:
anthony
2009-12-30 18:58:48 -07:00
parent 8e9672c1dd
commit 77bbbba9f3

View File

@@ -481,6 +481,12 @@ main(int argc, char *argv[])
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