diff options
author | Travis Howell | 2009-08-29 01:13:47 +0000 |
---|---|---|
committer | Travis Howell | 2009-08-29 01:13:47 +0000 |
commit | 19920fece2e164f1685c1f98faf1d3cff604f3ea (patch) | |
tree | 34d533dc373c2af6b9f183a88588e021d83cd895 | |
parent | af3e23b291a6c0cc9065f3a14328f682772b5ccb (diff) | |
download | scummvm-rg350-19920fece2e164f1685c1f98faf1d3cff604f3ea.tar.gz scummvm-rg350-19920fece2e164f1685c1f98faf1d3cff604f3ea.tar.bz2 scummvm-rg350-19920fece2e164f1685c1f98faf1d3cff604f3ea.zip |
Fix the default save game path setting in Macintosh versions of HE72+ games.
svn-id: r43784
-rw-r--r-- | engines/scumm/he/script_v60he.cpp | 5 | ||||
-rw-r--r-- | engines/scumm/he/script_v72he.cpp | 5 |
2 files changed, 8 insertions, 2 deletions
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); |