From ea8034865f4d6c38fc56173981e3946e172a03a2 Mon Sep 17 00:00:00 2001 From: Travis Howell Date: Wed, 16 Nov 2005 06:51:02 +0000 Subject: The 'TextOn' ini setting is checked by earlier HE games too. svn-id: r19613 --- scumm/script_v7he.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'scumm/script_v7he.cpp') 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); -- cgit v1.2.3