Now the Mac Version also opens games kinda like the -p option

svn-id: r3788
This commit is contained in:
Mutwin Kraus 2002-03-18 20:04:15 +00:00
parent 95af63b4d3
commit 44d5753bf8
2 changed files with 9 additions and 7 deletions

View file

@ -959,8 +959,6 @@ void main(void)
sound.initialize(&scumm,&snd_driv);
scumm._gui = &gui;
scumm.scummMain(2, &gameTitle);
setWindowName(wm->_scumm);

View file

@ -557,12 +557,12 @@ NextArg:;
_exe_name = s;
}
}
#else
//sprintf(_gameDataPath, ":%s:", *argv);
//_gameDataPath = *argv;
#else
_midi_driver = 4;
_exe_name = *argv;
_gameDataPath = (char*)malloc(strlen(_exe_name) + 3);
sprintf(_gameDataPath, ":%s:", _exe_name);
#endif
}
@ -1013,7 +1013,11 @@ void Scumm::dumpResource(char *tag, int idx, byte *ptr) {
else
size = READ_BE_UINT32_UNALIGNED(ptr+4);
#if defined(__APPLE__CW)
sprintf(buf, ":dumps:%s%d.dmp", tag,idx);
#else
sprintf(buf, "dumps/%s%d.dmp", tag,idx);
#endif
out = fopen(buf,"rb");
if (!out) {