aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorEugene Sandulenko2009-02-15 10:38:39 +0000
committerEugene Sandulenko2009-02-15 10:38:39 +0000
commit7ec7c4399e4ebc57d16347050873326db8b1f4e2 (patch)
tree54fa5590cd64fc9597e7c1f3cc1b274ac17eb368 /engines
parent61359f95bf2447714fd7e9a08dc1f9a1414b76ce (diff)
downloadscummvm-rg350-7ec7c4399e4ebc57d16347050873326db8b1f4e2.tar.gz
scummvm-rg350-7ec7c4399e4ebc57d16347050873326db8b1f4e2.tar.bz2
scummvm-rg350-7ec7c4399e4ebc57d16347050873326db8b1f4e2.zip
Run SCI games :P
svn-id: r38224
Diffstat (limited to 'engines')
-rw-r--r--engines/sci/scummvm/scummvm_engine.cpp9
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;