mirror of
https://github.com/Neo-Desktop/WindowsXPKg
synced 2024-12-22 12:30:17 +02:00
CLI moved to stack object
This commit is contained in:
parent
12a041c380
commit
bf40bb6402
12
src/main.cpp
12
src/main.cpp
@ -39,23 +39,23 @@ int main(int argc, char *argv[]) {
|
|||||||
return status;
|
return status;
|
||||||
}
|
}
|
||||||
|
|
||||||
CLI* run = new CLI(options, keys);
|
CLI run(options, keys);
|
||||||
|
|
||||||
switch(options.applicationMode) {
|
switch(options.applicationMode) {
|
||||||
case MODE_BINK1998_GENERATE:
|
case MODE_BINK1998_GENERATE:
|
||||||
return run->BINK1998Generate();
|
return run.BINK1998Generate();
|
||||||
|
|
||||||
case MODE_BINK2002_GENERATE:
|
case MODE_BINK2002_GENERATE:
|
||||||
return run->BINK2002Generate();
|
return run.BINK2002Generate();
|
||||||
|
|
||||||
case MODE_BINK1998_VALIDATE:
|
case MODE_BINK1998_VALIDATE:
|
||||||
return run->BINK1998Validate();
|
return run.BINK1998Validate();
|
||||||
|
|
||||||
case MODE_BINK2002_VALIDATE:
|
case MODE_BINK2002_VALIDATE:
|
||||||
return run->BINK2002Validate();
|
return run.BINK2002Validate();
|
||||||
|
|
||||||
case MODE_CONFIRMATION_ID:
|
case MODE_CONFIRMATION_ID:
|
||||||
return run->ConfirmationID();
|
return run.ConfirmationID();
|
||||||
|
|
||||||
default:
|
default:
|
||||||
return 1;
|
return 1;
|
||||||
|
Loading…
Reference in New Issue
Block a user