mirror of
https://github.com/gbdev/rgbds.git
synced 2026-05-08 19:09:36 +00:00
Warn when SGB compatibility is set without old licensee 0x33
This commit is contained in:
@@ -967,6 +967,10 @@ static void processFile(int input, int output, char const *name, off_t fileSize)
|
|||||||
|
|
||||||
if (oldLicensee != UNSPECIFIED)
|
if (oldLicensee != UNSPECIFIED)
|
||||||
overwriteByte(rom0, 0x14B, oldLicensee, "old licensee code");
|
overwriteByte(rom0, 0x14B, oldLicensee, "old licensee code");
|
||||||
|
else if (sgb && rom0[0x14B] != 0x33)
|
||||||
|
fprintf(stderr,
|
||||||
|
"warning: SGB compatibility enabled, but old licensee was %#x, not 0x33\n",
|
||||||
|
rom0[0x14B]);
|
||||||
|
|
||||||
if (romVersion != UNSPECIFIED)
|
if (romVersion != UNSPECIFIED)
|
||||||
overwriteByte(rom0, 0x14C, romVersion, "mask ROM version number");
|
overwriteByte(rom0, 0x14C, romVersion, "mask ROM version number");
|
||||||
|
|||||||
Binary file not shown.
@@ -0,0 +1,2 @@
|
|||||||
|
warning: Overwrote a non-zero byte in the SGB flag
|
||||||
|
warning: SGB compatibility enabled, but old licensee was 0xc5, not 0x33
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
-s
|
||||||
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user