mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 18:22:07 +00:00
error out if both -o and -c are specified
This commit is contained in:
@@ -294,10 +294,16 @@ main(int argc, char *argv[])
|
||||
ulOptions |= OPTF_QUIET;
|
||||
break;
|
||||
case 'o':
|
||||
if (ulOptions & OPTF_GBCMODE) {
|
||||
FatalError("-c and -o can't be used together");
|
||||
}
|
||||
ulOptions |= OPTF_GBCMODE;
|
||||
gbc_mode = 0xC0;
|
||||
break;
|
||||
case 'c':
|
||||
if (ulOptions & OPTF_GBCMODE) {
|
||||
FatalError("-c and -o can't be used together");
|
||||
}
|
||||
ulOptions |= OPTF_GBCMODE;
|
||||
gbc_mode = 0x80;
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user