mirror of
https://github.com/xtexChooser/WindowsXPKg.git
synced 2024-11-05 23:53:59 +00:00
Update cli.cpp
This commit is contained in:
parent
45004623be
commit
ae391a5e50
1 changed files with 7 additions and 1 deletions
|
@ -216,7 +216,13 @@ int CLI::validateCommandLine(Options* options, char *argv[], json *keys) {
|
||||||
int intBinkID;
|
int intBinkID;
|
||||||
sscanf(options->binkid.c_str(), "%x", &intBinkID);
|
sscanf(options->binkid.c_str(), "%x", &intBinkID);
|
||||||
|
|
||||||
if (intBinkID >= 0x40 && intBinkID < 0xFE ) { // FE and FF are BINK 1998
|
// FE and FF are BINK 1998, but do not generate valid keys, so we throw an error
|
||||||
|
if (intBinkID >= 0xFE) {
|
||||||
|
fmt::print("ERROR: Terminal Services BINKs (FE and FF) are unsupported at this time\n");
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (intBinkID >= 0x40) {
|
||||||
// set bink2002 validate mode if in bink1998 validate mode, else set bink2002 generate mode
|
// 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;
|
options->applicationMode = (options->applicationMode == MODE_BINK1998_VALIDATE) ? MODE_BINK2002_VALIDATE : MODE_BINK2002_GENERATE;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue