gbdk-2020 | GameBoy Development Kit |
| download: https://git.y1.nz/archives/gbdk.tar.gz | |
| README | Files | Log | Refs | LICENSE |
commit a25e141c2ab7d486df043e2bfec3a24a92be2891 parent 78855eb6fef33210ca7efcab2b8dfd2db5230a42 Author: bbbbbr <bbbbbr@users.noreply.github.com> Date: Sat, 4 Jun 2022 17:04:38 -0700 Merge pull request #358 from bbbbbr/lcc_gbz80_sm83_warning lcc: Error out and warn when gbz80 port is used instead of sm83 Diffstat:
| M | gbdk-support/lcc/gb.c | 7 | +++++++ |
1 file changed, 7 insertions(+), 0 deletions(-)
diff --git a/gbdk-support/lcc/gb.c b/gbdk-support/lcc/gb.c @@ -269,6 +269,13 @@ int option(char *arg) { // Requires both PORT and PLAT, must match a valid setClass entry. if (word_count == 2) { + // Error out and warn user when old gbz80 PORT name is used instead of sm83 + if (!strcmp("gbz80", words[0])) { + fprintf(stderr, "Error: %s: old \"gbz80\" SDCC PORT name specified (in \"%s\"). Use \"sm83\" instead. " + "You must update your build settings.\n", progname, arg); + exit(-1); + } + setTokenVal("port", words[0]); setTokenVal("plat", words[1]); if (!setClass(words[0], words[1])) {
This webpage is intended to be an accessible preview of this repository. To get a fuller picture, clone it and use the git CLI.