aboutsummaryrefslogtreecommitdiff
path: root/scumm
diff options
context:
space:
mode:
authorTravis Howell2005-11-16 06:51:02 +0000
committerTravis Howell2005-11-16 06:51:02 +0000
commitea8034865f4d6c38fc56173981e3946e172a03a2 (patch)
tree075d63d764011209af886f3bd2130e5e062f8b50 /scumm
parent2f86c6417d2e1456a509563d5d68a65760036a9a (diff)
downloadscummvm-rg350-ea8034865f4d6c38fc56173981e3946e172a03a2.tar.gz
scummvm-rg350-ea8034865f4d6c38fc56173981e3946e172a03a2.tar.bz2
scummvm-rg350-ea8034865f4d6c38fc56173981e3946e172a03a2.zip
The 'TextOn' ini setting is checked by earlier HE games too.
svn-id: r19613
Diffstat (limited to 'scumm')
-rw-r--r--scumm/script_v72he.cpp2
-rw-r--r--scumm/script_v7he.cpp10
2 files changed, 9 insertions, 3 deletions
diff --git a/scumm/script_v72he.cpp b/scumm/script_v72he.cpp
index a8ca787d17..2930f8f6f6 100644
--- a/scumm/script_v72he.cpp
+++ b/scumm/script_v72he.cpp
@@ -2208,7 +2208,7 @@ void ScummEngine_v72he::o72_writeINI() {
return;
ConfMan.set((char *)option, (char *)string);
- debug(0, "o72_writeINI: Option %s String %s", option);
+ debug(0, "o72_writeINI: Option %s String %s", option, string);
break;
default:
error("o72_writeINI: default type %d", type);
diff --git a/scumm/script_v7he.cpp b/scumm/script_v7he.cpp
index 370cf5156e..892a1a990c 100644
--- a/scumm/script_v7he.cpp
+++ b/scumm/script_v7he.cpp
@@ -952,10 +952,13 @@ void ScummEngine_v70he::o70_readINI() {
type = pop();
switch (type) {
case 1: // number
- if (!strcmp((char *)option, "NoPrinting"))
+ if (!strcmp((char *)option, "NoPrinting")) {
push(1);
- else
+ } else if (!strcmp((char *)option, "TextOn")) {
+ push(ConfMan.getBool("subtitles"));
+ } else {
push(ConfMan.getInt((char *)option));
+ }
break;
case 2: // string
entry = (ConfMan.get((char *)option).c_str());
@@ -970,6 +973,7 @@ void ScummEngine_v70he::o70_readINI() {
default:
error("o70_readINI: default type %d", type);
}
+ debug(0, "o70_readINI: Option %s", option);
}
void ScummEngine_v70he::o70_writeINI() {
@@ -987,12 +991,14 @@ void ScummEngine_v70he::o70_writeINI() {
switch (type) {
case 1: // number
ConfMan.set((char *)option, value);
+ debug(0, "o70_writeINI: Option %s Value %d", option, value);
break;
case 2: // string
convertMessageToString(_scriptPointer, string, sizeof(string));
len = resStrLen(_scriptPointer);
_scriptPointer += len + 1;
ConfMan.set((char *)option, (char *)string);
+ debug(0, "o70_writeINI: Option %s String %s", option, string);
break;
default:
error("o70_writeINI: default type %d", type);