aboutsummaryrefslogtreecommitdiff
path: root/engines/wintermute/wintermute.cpp
diff options
context:
space:
mode:
authorEinar Johan Trøan Sømåen2012-07-29 21:35:11 +0200
committerEinar Johan Trøan Sømåen2012-07-29 21:37:24 +0200
commit85ce9340bcb425a6c5e8dbcacff5a7fa2fb4c817 (patch)
treed78a7c5377ef446e87dac092f9d29377c27cc7ff /engines/wintermute/wintermute.cpp
parent80a67a70cdaad254185ffd9b2042a710e4a6e338 (diff)
downloadscummvm-rg350-85ce9340bcb425a6c5e8dbcacff5a7fa2fb4c817.tar.gz
scummvm-rg350-85ce9340bcb425a6c5e8dbcacff5a7fa2fb4c817.tar.bz2
scummvm-rg350-85ce9340bcb425a6c5e8dbcacff5a7fa2fb4c817.zip
WINTERMUTE: Separate out SaveGame-code from BaseGame
Diffstat (limited to 'engines/wintermute/wintermute.cpp')
-rw-r--r--engines/wintermute/wintermute.cpp34
1 files changed, 1 insertions, 33 deletions
diff --git a/engines/wintermute/wintermute.cpp b/engines/wintermute/wintermute.cpp
index 68a9dd6e13..af0251d01a 100644
--- a/engines/wintermute/wintermute.cpp
+++ b/engines/wintermute/wintermute.cpp
@@ -144,33 +144,6 @@ int WinterMuteEngine::init() {
bool windowedMode = !ConfMan.getBool("fullscreen");
- // parse command line
- char *saveGame = NULL;
- /* for (int i = 0; i < argc; i++) {
- strcpy(param, argv[i]);
-
- if (scumm_stricmp(param, "-project") == 0) {
- if (argc > i) strcpy(param, argv[i + 1]);
- else param[0] = '\0';
-
- if (strcmp(param, "") != 0) {
- char *iniDir = BaseUtils::GetPath(param);
- char *iniName = BaseUtils::GetFilename(param);
-
- // switch to ini's dir
- warning("TODO: Place ini-files somewhere");
- // chdir(IniDir);
-
- // set ini name
- sprintf(param, "./%s", IniName);
- _game->_registry->SetIniName(param);
-
- delete[] IniDir;
- delete[] IniName;
- }
- } else if (scumm_stricmp(param, "-windowed") == 0) windowedMode = true;
- }*/
-
if (ConfMan.hasKey("debug_mode")) {
if (ConfMan.getBool("debug_mode")) {
_game->DEBUG_DebugEnable("./wme.log");
@@ -240,7 +213,7 @@ int WinterMuteEngine::init() {
_game = NULL;
return false;
}
- //_game->setWindowTitle();
+
_game->_renderer->_ready = true;
_game->_miniUpdateEnabled = true;
@@ -252,11 +225,6 @@ int WinterMuteEngine::init() {
_game->loadGame(slot);
}
- if (saveGame) {
- _game->loadGame(saveGame);
- delete[] saveGame;
- }
-
// all set, ready to go
return 0;
}