diff options
author | Tobia Tesan | 2016-03-05 21:37:34 +0100 |
---|---|---|
committer | Tobia Tesan | 2016-03-05 22:19:53 +0100 |
commit | 83f921fa8003022c59cffc88d5cf1838cb6c6da6 (patch) | |
tree | 13e7bf9e4c6aa63508ee7dac5632b89b413a5496 /engines | |
parent | 2c8160245460cc9a7a864b58b4e962f7a2c77c4b (diff) | |
download | scummvm-rg350-83f921fa8003022c59cffc88d5cf1838cb6c6da6.tar.gz scummvm-rg350-83f921fa8003022c59cffc88d5cf1838cb6c6da6.tar.bz2 scummvm-rg350-83f921fa8003022c59cffc88d5cf1838cb6c6da6.zip |
WINTERMUTE: Add fallback for hardcoded absolute path in carolreed5
Carol Reed 5 (the full game, data.dcp hash
27b3efc018ade5ee8f4adf08b4e3c0dd) refers to the absolute path
"f:\dokument\spel 5\demo\data\scenes\credits\op_cred_00\op_cred_00.jpg"
Appears to fix bug #7067.
Diffstat (limited to 'engines')
-rw-r--r-- | engines/wintermute/base/file/base_disk_file.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/engines/wintermute/base/file/base_disk_file.cpp b/engines/wintermute/base/file/base_disk_file.cpp index 82a9e24dfb..b474c069db 100644 --- a/engines/wintermute/base/file/base_disk_file.cpp +++ b/engines/wintermute/base/file/base_disk_file.cpp @@ -119,6 +119,8 @@ Common::SeekableReadStream *openDiskFile(const Common::String &filename) { fixedFilename = filename.c_str() + 14; } else if (fixedFilename.hasPrefix("c:/carol6/svn/data/")) { // Carol Reed 6: Black Circle refers to "c:\carol6\svn\data\sprites\system\help.png" fixedFilename = fixedFilename.c_str() + 19; + } else if (fixedFilename.hasPrefix("f:/dokument/spel 5/demo/data/")) { // Carol Reed 5 (non-demo) refers to "f:\dokument\spel 5\demo\data\scenes\credits\op_cred_00\op_cred_00.jpg" + fixedFilename = fixedFilename.c_str() + 29; } else { error("openDiskFile::Absolute path or invalid filename used in %s", filename.c_str()); } |