Require cc for ccenable

This commit is contained in:
jl777
2019-01-19 00:57:55 -11:00
parent 70fba21c46
commit ac9bd541b4

View File

@@ -1780,6 +1780,8 @@ void komodo_args(char *argv0)
ASSETCHAINS_BEAMPORT = GetArg("-ac_beam",0); ASSETCHAINS_BEAMPORT = GetArg("-ac_beam",0);
ASSETCHAINS_CODAPORT = GetArg("-ac_coda",0); ASSETCHAINS_CODAPORT = GetArg("-ac_coda",0);
ASSETCHAINS_MARMARA = GetArg("-ac_marmara",0); ASSETCHAINS_MARMARA = GetArg("-ac_marmara",0);
if ( ASSETCHAINS_CC != 0 )
{
Split(GetArg("-ac_ccenable",""), ccenables, 0); Split(GetArg("-ac_ccenable",""), ccenables, 0);
for (i=nonz=0; i<0x100; i++) for (i=nonz=0; i<0x100; i++)
{ {
@@ -1800,6 +1802,7 @@ void komodo_args(char *argv0)
ASSETCHAINS_CCDISABLES[ccenables[i] & 0xff] = 0; ASSETCHAINS_CCDISABLES[ccenables[i] & 0xff] = 0;
} }
} }
}
if ( ASSETCHAINS_BEAMPORT != 0 && ASSETCHAINS_CODAPORT != 0 ) if ( ASSETCHAINS_BEAMPORT != 0 && ASSETCHAINS_CODAPORT != 0 )
{ {
fprintf(stderr,"can only have one of -ac_beam or -ac_coda\n"); fprintf(stderr,"can only have one of -ac_beam or -ac_coda\n");