diff options
author | Travis Howell | 2005-12-03 00:58:33 +0000 |
---|---|---|
committer | Travis Howell | 2005-12-03 00:58:33 +0000 |
commit | 34425232783c9b76b3447b2fc14d4a8fba6a40d4 (patch) | |
tree | 25e0f7693132926e169198826e0fb163b428a023 /scumm/script_v72he.cpp | |
parent | 6d7eeaca4a99ee22a35608f954412fe1c8eac3d8 (diff) | |
download | scummvm-rg350-34425232783c9b76b3447b2fc14d4a8fba6a40d4.tar.gz scummvm-rg350-34425232783c9b76b3447b2fc14d4a8fba6a40d4.tar.bz2 scummvm-rg350-34425232783c9b76b3447b2fc14d4a8fba6a40d4.zip |
Add work around for filename difference in HE7 file of water (HE99 Mac.)
Add details for Macintosh versions of German HE demos.
svn-id: r19731
Diffstat (limited to 'scumm/script_v72he.cpp')
-rw-r--r-- | scumm/script_v72he.cpp | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/scumm/script_v72he.cpp b/scumm/script_v72he.cpp index 5b0812b4bb..bc8fbbcfab 100644 --- a/scumm/script_v72he.cpp +++ b/scumm/script_v72he.cpp @@ -1762,11 +1762,17 @@ void ScummEngine_v72he::o72_openFile() { // There are Macintosh specific versions of HE7.2 games. if (_heversion >= 80 && _platform == Common::kPlatformMacintosh) { - char buf1[128]; - buf1[0] = '\0'; - generateSubstResFileName((char *)filename, buf1, sizeof(buf1)); - if (buf1[0]) { - strcpy((char *)filename, buf1); + // Work around for filename difference in HE7 file, needs to + // open 'Water (7)' instead of 'Water Worries (7)'. + if (_gameId == GID_WATER && _heversion == 99 && !strcmp((char *)filename, "Water.he7")) { + strcpy((char *)filename, "Water (7)"); + } else { + char buf1[128]; + buf1[0] = '\0'; + generateSubstResFileName((char *)filename, buf1, sizeof(buf1)); + if (buf1[0]) { + strcpy((char *)filename, buf1); + } } } |