IConfigPtr cfg = getConfig();
+ ::window = makeSDLWindow();
+
IScreenPtr screen;
if (cmd == "edit") {
- // ::window = makeFLTKWindow("Train Game Editor", addEditorGUI);
- ::window = makeSDLWindow();
if (resourceExists(mapFile, "maps"))
screen = makeEditorScreen(loadMap(mapFile));
else {
}
}
else if (cmd == "play") {
- ::window = makeSDLWindow();
screen = makeGameScreen(loadMap(mapFile));
}
else if (cmd == "uidemo") {
- ::window = makeSDLWindow();
screen = makeUIDemo();
}
else