From 19920fece2e164f1685c1f98faf1d3cff604f3ea Mon Sep 17 00:00:00 2001 From: Travis Howell Date: Sat, 29 Aug 2009 01:13:47 +0000 Subject: Fix the default save game path setting in Macintosh versions of HE72+ games. svn-id: r43784 --- engines/scumm/he/script_v60he.cpp | 5 ++++- engines/scumm/he/script_v72he.cpp | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) (limited to 'engines') diff --git a/engines/scumm/he/script_v60he.cpp b/engines/scumm/he/script_v60he.cpp index 4c01d3b15c..0048160980 100644 --- a/engines/scumm/he/script_v60he.cpp +++ b/engines/scumm/he/script_v60he.cpp @@ -131,9 +131,12 @@ int ScummEngine_v60he::convertFilePath(byte *dst, int dstSize) { r = 2; } else if (dst[2] == 'b' && dst[5] == 'k') { // Backyard Basketball INI r = 13; - } else if (dst[0] == '*' && dst[1] == '/') { // Save Game Path (HE72 - HE100) + } else if (dst[0] == '*' && dst[1] == '/') { // Save Game Path (Windows HE72 - HE100) // The default save game path is set to '*/' by ScummVM r = 2; + } else if (dst[0] == '*' && dst[1] == ':') { // Save Game Path (Macintosh HE72 - HE100) + // The default save game path is set to ':/' by ScummVM + r = 2; } else if (dst[0] == 'c' && dst[1] == ':') { // Save Game Path (HE60 - HE71) // The default save path is game path (DOS) or 'c:/hegames/' (Windows) for (r = len; r != 0; r--) { diff --git a/engines/scumm/he/script_v72he.cpp b/engines/scumm/he/script_v72he.cpp index 3dd70a09c9..238eb0388c 100644 --- a/engines/scumm/he/script_v72he.cpp +++ b/engines/scumm/he/script_v72he.cpp @@ -1828,7 +1828,10 @@ void ScummEngine_v72he::o72_readINI() { // in convertFilePath and to avoid warning about invalid // path in Macintosh verisons. data = defineArray(0, kStringArray, 0, 0, 0, 2); - memcpy(data, (const char *)"*\\", 2); + if (_game.platform == Common::kPlatformMacintosh) + memcpy(data, (const char *)"*:", 2); + else + memcpy(data, (const char *)"*\\", 2); } else { const char *entry = (ConfMan.get((char *)option).c_str()); int len = resStrLen((const byte *)entry); -- cgit v1.2.3