Run SCI games :P

svn-id: r38224
This commit is contained in:
Eugene Sandulenko 2009-02-15 10:38:39 +00:00
parent 61359f95bf
commit 7ec7c4399e

View File

@ -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;