diff options
Diffstat (limited to 'scumm/script_v72he.cpp')
-rw-r--r-- | scumm/script_v72he.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/scumm/script_v72he.cpp b/scumm/script_v72he.cpp index 77138e9f39..ab2b7b0b84 100644 --- a/scumm/script_v72he.cpp +++ b/scumm/script_v72he.cpp @@ -1556,7 +1556,7 @@ void ScummEngine_v72he::o72_openFile() { // HACK Correct incorrect filenames if (!strcmp((char *)filename,".he3")) { - // For freddicove (Unencrypted) + // 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); @@ -1569,6 +1569,13 @@ void ScummEngine_v72he::o72_openFile() { } + if (_substResFileNameIndex > 0) { + char buf1[128]; + + generateSubstResFileName((char *)filename, buf1, 256, 0, _substResFileNameIndex); + strcpy((char *)filename, buf1); + } + // HACK: Convert paths if (filename[0] == ':') { int len = resStrLen(filename); |