git.y1.nz

gbdk-2020

GameBoy Development Kit
download: https://git.y1.nz/archives/gbdk.tar.gz
README | Files | Log | Refs | LICENSE

commit 133d8b3e61030722d8a481c306f22fe83b52d7da
parent 2a8675de7eb3a0ee513dcbc8cc2d9fe4f32535b0
Author: Toxa <56631470+untoxa@users.noreply.github.com>
Date:   Wed, 17 Feb 2021 11:53:24 +0300

Merge pull request #134 from basxto/makebin-update

Update accepted flags for makebin
Diffstat:
Mgbdk-support/lcc/lcc.c8++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/gbdk-support/lcc/lcc.c b/gbdk-support/lcc/lcc.c @@ -783,8 +783,8 @@ static void opt(char *arg) { bankpacklist = append(&arg[3], bankpacklist); return; case 'l': /* Linker */ - if(arg[4] == 'y' && (arg[5] == 't' || arg[5] == 'o' || arg[5] == 'a') && (arg[6] != '\0' && arg[6] != ' ')) - goto makebinoption; //automatically pass -yo -ya -yt options to makebin (backwards compatibility) + if(arg[4] == 'y' && (arg[5] == 't' || arg[5] == 'o' || arg[5] == 'a' || arg[5] == 'p') && (arg[6] != '\0' && arg[6] != ' ')) + goto makebinoption; //automatically pass -yo -ya -yt -yp options to makebin (backwards compatibility) { char *tmp = malloc(256); sprintf(tmp, "%c%c", arg[3], arg[4]); //sdldgb requires spaces between -k and the path @@ -801,8 +801,8 @@ static void opt(char *arg) { char *tmp2 = malloc(256); tmp2[0] = '\0'; // Zero out second arg by default if(arg[4] == 'y') { - sprintf(tmp, "%c%c%c", arg[3], arg[4], arg[5]); //-yo -ya -yt -yl -yk -yn - if (!(arg[5] == 'c' || arg[5] == 'C' || arg[5] == 's' || arg[5] == 'j')) // Don't add secong arg for -yc -yC -ys -yj + sprintf(tmp, "%c%c%c", arg[3], arg[4], arg[5]); //-yo -ya -yt -yl -yk -yn -yp + if (!(arg[5] == 'c' || arg[5] == 'C' || arg[5] == 's' || arg[5] == 'S' || arg[5] == 'j')) // Don't add second arg for -yc -yC -ys -yS -yj sprintf(tmp2, "%s", &arg[6]); // If MBC option is present for makebin (-Wl-yt <n> or -Wm-yt <n>) then make a copy for bankpack to use

This webpage is intended to be an accessible preview of this repository. To get a fuller picture, clone it and use the git CLI.