aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--scumm/script.cpp6
-rw-r--r--scumm/script_v72he.cpp2
2 files changed, 5 insertions, 3 deletions
diff --git a/scumm/script.cpp b/scumm/script.cpp
index bfacd73e04..239acf4e86 100644
--- a/scumm/script.cpp
+++ b/scumm/script.cpp
@@ -583,14 +583,14 @@ void ScummEngine::writeVar(uint var, int value) {
checkRange(_numVariables - 1, 0, var, "Variable %d out of range(w)");
if (VAR_SUBTITLES != 0xFF && var == VAR_SUBTITLES) {
- // Ignore default setting in HE60/61 games
- if (_heversion >= 70 && vm.slot[_currentScript].number == 1)
+ // Ignore default setting in HE72-73 games
+ if (_heversion <= 73 && vm.slot[_currentScript].number == 1)
return;
assert(value == 0 || value == 1);
ConfMan.set("subtitles", value);
}
if (VAR_NOSUBTITLES != 0xFF && var == VAR_NOSUBTITLES) {
- // Ignore default setting in HE60/61 games
+ // Ignore default setting in HE60-71 games
if (_heversion >= 60 && vm.slot[_currentScript].number == 1)
return;
assert(value == 0 || value == 1);
diff --git a/scumm/script_v72he.cpp b/scumm/script_v72he.cpp
index 2930f8f6f6..5b0812b4bb 100644
--- a/scumm/script_v72he.cpp
+++ b/scumm/script_v72he.cpp
@@ -525,6 +525,8 @@ void ScummEngine_v72he::readArrayFromIndexFile() {
}
int ScummEngine_v72he::convertFilePath(byte *dst, bool setFilePath) {
+ debug(0, "convertFilePath: original filePath is %s", dst);
+
// Switch all \ to / for portablity
int len = resStrLen(dst) + 1;
for (int i = 0; i < len; i++) {