From 83f921fa8003022c59cffc88d5cf1838cb6c6da6 Mon Sep 17 00:00:00 2001 From: Tobia Tesan Date: Sat, 5 Mar 2016 21:37:34 +0100 Subject: 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. --- engines/wintermute/base/file/base_disk_file.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'engines') 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()); } -- cgit v1.2.3