aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--scumm/script_v72he.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/scumm/script_v72he.cpp b/scumm/script_v72he.cpp
index 0170fdc5d5..a2ae0eb4db 100644
--- a/scumm/script_v72he.cpp
+++ b/scumm/script_v72he.cpp
@@ -1555,13 +1555,20 @@ void ScummEngine_v72he::o72_openFile() {
debug(0,"Original filename %s", filename);
- // HACK Correct incorrect filenames
+ // Original games read path & filenames from INI file
+ // We only need to add the required game name
if (!strcmp((char *)filename,".he3")) {
// For freddicove (Unencrypted and Updated Ru)
memset(filename, 0, sizeof(filename));
sprintf((char *)filename, "%s.he3", _gameName.c_str());
debug(0,"New filename %s", filename);
+ } else if (!strcmp((char *)filename,".he7")) {
+ // For mustard
+ memset(filename, 0, sizeof(filename));
+ sprintf((char *)filename, "%s.he7", _gameName.c_str());
+ debug(0,"New filename %s", filename);
+
} else if (!strcmp((char *)filename,".HE9")) {
// For bb2demo
memset(filename, 0, sizeof(filename));