gbdk-2020 | GameBoy Development Kit |
| download: https://git.y1.nz/archives/gbdk.tar.gz | |
| README | Files | Log | Refs | LICENSE |
commit 5a2d610fe739d7111dfdcda0803fc5363e5cb642 parent 206b371691d636ecb0387bbe1253b1f463365182 Author: Toxa <untoxa@mail.ru> Date: Wed, 26 Jul 2023 15:44:34 +0300 MAKEBIN: fix incorrect rom size in the game boy rom header when -autobank is selected and the resulting rom size is 64K Diffstat:
| M | gbdk-support/makebin/makebin.c | 8 | ++++---- |
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/gbdk-support/makebin/makebin.c b/gbdk-support/makebin/makebin.c @@ -824,7 +824,7 @@ main (int argc, char **argv) case 'Z': /* generate GameBoy binary file */ - gb = 1; + gb = 1, sms = 0, nes = 0; break; case 'y': @@ -959,12 +959,12 @@ main (int argc, char **argv) case 'S': /* generate SMS binary file */ - sms = 1; + gb = 0, sms = 1, nes = 0; break; case 'N': /* generate iNES binary file */ - nes = 1; + gb = 0, sms = 0, nes = 1; break; case 'x': @@ -1056,7 +1056,7 @@ main (int argc, char **argv) } // If auto-banking is enabled, and sms/gg has RAM banks specified, fix up min ROM size if needed - sms_preproc(&gb_opt, &sms_opt, &size); + if (sms) sms_preproc(&gb_opt, &sms_opt, &size); rom = malloc (size); if (rom == NULL)
This webpage is intended to be an accessible preview of this repository. To get a fuller picture, clone it and use the git CLI.