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); sound.initialize(&scumm,&snd_driv);
scumm._gui = &gui;
scumm.scummMain(2, &gameTitle); scumm.scummMain(2, &gameTitle);
setWindowName(wm->_scumm); setWindowName(wm->_scumm);

View file

@ -557,12 +557,12 @@ NextArg:;
_exe_name = s; _exe_name = s;
} }
} }
#else
//sprintf(_gameDataPath, ":%s:", *argv); #else
//_gameDataPath = *argv;
_midi_driver = 4; _midi_driver = 4;
_exe_name = *argv; _exe_name = *argv;
_gameDataPath = (char*)malloc(strlen(_exe_name) + 3);
sprintf(_gameDataPath, ":%s:", _exe_name);
#endif #endif
} }
@ -1012,9 +1012,13 @@ void Scumm::dumpResource(char *tag, int idx, byte *ptr) {
size = READ_LE_UINT32(ptr); size = READ_LE_UINT32(ptr);
else else
size = READ_BE_UINT32_UNALIGNED(ptr+4); 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); sprintf(buf, "dumps/%s%d.dmp", tag,idx);
#endif
out = fopen(buf,"rb"); out = fopen(buf,"rb");
if (!out) { if (!out) {
out = fopen(buf, "wb"); out = fopen(buf, "wb");