diff options
Diffstat (limited to 'engines')
-rw-r--r-- | engines/sci/scummvm/scummvm_engine.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/engines/sci/scummvm/scummvm_engine.cpp b/engines/sci/scummvm/scummvm_engine.cpp index cabaccff7f..ae23eb0fa6 100644 --- a/engines/sci/scummvm/scummvm_engine.cpp +++ b/engines/sci/scummvm/scummvm_engine.cpp @@ -221,13 +221,14 @@ main_() init_console(); /* So we can get any output */ - char startdir[MAXPATHLEN+1] = ""; - getcwd(startdir, MAXPATHLEN); script_debug_flag = 0; sci_version_t version; int res_version; + // FIXME. An evil hack until File class will be used properly + chdir(ConfMan.get("path").c_str()); + detect_versions(&version, &res_version); char resource_dir[MAXPATHLEN+1] = ""; @@ -243,8 +244,6 @@ main_() script_adjust_opcode_formats(resmgr->sci_version); - chdir(startdir); - #if 0 printf("Mapping instruments to General Midi\n"); @@ -339,8 +338,6 @@ main_() close_console_file(); - chdir (startdir); /* ? */ - gfxop_exit(&gfx_state); return 0; |