[Scummvm-cvs-logs] SF.net SVN: scummvm:[38224] scummvm/trunk/engines/sci/scummvm/ scummvm_engine.cpp
sev at users.sourceforge.net
sev at users.sourceforge.net
Sun Feb 15 11:38:39 CET 2009
Revision: 38224
http://scummvm.svn.sourceforge.net/scummvm/?rev=38224&view=rev
Author: sev
Date: 2009-02-15 10:38:39 +0000 (Sun, 15 Feb 2009)
Log Message:
-----------
Run SCI games :P
Modified Paths:
--------------
scummvm/trunk/engines/sci/scummvm/scummvm_engine.cpp
Modified: scummvm/trunk/engines/sci/scummvm/scummvm_engine.cpp
===================================================================
--- scummvm/trunk/engines/sci/scummvm/scummvm_engine.cpp 2009-02-15 10:33:31 UTC (rev 38223)
+++ scummvm/trunk/engines/sci/scummvm/scummvm_engine.cpp 2009-02-15 10:38:39 UTC (rev 38224)
@@ -221,13 +221,14 @@
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 @@
script_adjust_opcode_formats(resmgr->sci_version);
- chdir(startdir);
-
#if 0
printf("Mapping instruments to General Midi\n");
@@ -339,8 +338,6 @@
close_console_file();
- chdir (startdir); /* ? */
-
gfxop_exit(&gfx_state);
return 0;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list