From c1e9a0f02151ac6c55636acbd422f155f4ace136 Mon Sep 17 00:00:00 2001 From: TheTank20 Date: Fri, 28 Jul 2023 18:10:25 -0500 Subject: [PATCH] add exclusions for FE and FF --- src/cli.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/cli.cpp b/src/cli.cpp index e79a425..cedf8b5 100644 --- a/src/cli.cpp +++ b/src/cli.cpp @@ -217,8 +217,10 @@ int CLI::validateCommandLine(Options* options, char *argv[], json *keys) { sscanf(options->binkid.c_str(), "%x", &intBinkID); if (intBinkID >= 0x40) { - // set bink2002 validate mode if in bink1998 validate mode, else set bink2002 generate mode - options->applicationMode = (options->applicationMode == MODE_BINK1998_VALIDATE) ? MODE_BINK2002_VALIDATE : MODE_BINK2002_GENERATE; + if (intBinkID != 0xFE && intBinkID != 0xFF) { // FE and FF are oddballs that are bink1998, this excludes them from being set to bink2002 + // set bink2002 validate mode if in bink1998 validate mode, else set bink2002 generate mode + options->applicationMode = (options->applicationMode == MODE_BINK1998_VALIDATE) ? MODE_BINK2002_VALIDATE : MODE_BINK2002_GENERATE; + } } if (options->channelID > 999) {