diff options
Diffstat (limited to 'engines/sci/scummvm/scummvm_engine.cpp')
-rw-r--r-- | engines/sci/scummvm/scummvm_engine.cpp | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/engines/sci/scummvm/scummvm_engine.cpp b/engines/sci/scummvm/scummvm_engine.cpp index 907aa39e05..2f910e044c 100644 --- a/engines/sci/scummvm/scummvm_engine.cpp +++ b/engines/sci/scummvm/scummvm_engine.cpp @@ -215,7 +215,7 @@ detect_versions(sci_version_t *version, int *res_version) } int -main_(const char* gamedir) +main_() { resource_mgr_t *resmgr; @@ -225,11 +225,6 @@ main_(const char* gamedir) getcwd(startdir, MAXPATHLEN); script_debug_flag = 0; - if (chdir(gamedir)) { - printf ("Error changing to game directory '%s'\n", gamedir); - exit(1); - } - sci_version_t version; int res_version; @@ -408,8 +403,7 @@ Common::Error SciEngine::go() { _system->delayMillis(10); } */ - // FIXME: Not a good idea to use _gameDataDir.getPath() like this... - main_(_gameDataDir.getPath().c_str()); + main_(); return Common::kNoError; } |