Skip to content
Snippets Groups Projects
Commit 627166b6 authored by rswindell's avatar rswindell
Browse files

Allow the UIFC ciolib mode (e.g. "stdio") to be passed as a cmdline argument.

Call uifc.bail() to clean up the screen before exiting.
parent 4a9eb98f
No related branches found
No related tags found
No related merge requests found
......@@ -104,12 +104,14 @@ if(uifc == undefined) {
exit(1);
}
uifc.init("TradeWars 2 Initialization");
uifc.init("TradeWars 2 Initialization", /* ciolibmode: */argv[0]);
ConfigureSettings();
if(js.global.db != undefined) {
if(uifc.list(WIN_MID|WIN_SAV, 0, 0, 0, 0, 0, "Reset Game?", ["No", "Yes"])!=1)
if(uifc.list(WIN_MID|WIN_SAV, 0, 0, 0, 0, 0, "Reset Game?", ["No", "Yes"])!=1) {
uifc.bail();
exit(1);
}
}
load(fname("ports.js"));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment