ref: 2d72b12eb89e14338b81d0e37e90ec3f69b16a9e
parent: 77bbbba9f3d465754b9f7781f1ddd48da71b4f8a
author: anthony <[email protected]>
date: Wed Dec 30 14:47:44 EST 2009
error out if both -o and -c are specified
--- a/src/fix/main.c
+++ b/src/fix/main.c
@@ -294,10 +294,16 @@
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;