From b1b7ffa1f245bc969a0dbeec8612436d41e3402b Mon Sep 17 00:00:00 2001 From: Alyssa Milburn Date: Mon, 29 Nov 2010 21:42:37 +0000 Subject: MOHAWK: move GF_NO_READONLY check to after actual page load svn-id: r54652 --- engines/mohawk/livingbooks.cpp | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'engines/mohawk') diff --git a/engines/mohawk/livingbooks.cpp b/engines/mohawk/livingbooks.cpp index e9c2febe54..3459cd8f08 100644 --- a/engines/mohawk/livingbooks.cpp +++ b/engines/mohawk/livingbooks.cpp @@ -276,18 +276,6 @@ bool MohawkEngine_LivingBooks::loadPage(LBMode mode, uint page, uint subpage) { _readOnly = true; } - if (getFeatures() & GF_NO_READONLY) { - if (_readOnly) { - // TODO: make this a warning, after some testing? - error("game detection table is bad (remove GF_NO_READONLY)"); - } else { - // some very early versions of the LB engine don't have - // .r entries in their book info; instead, it is just hardcoded - // like this (which would unfortunately break later games) - _readOnly = (mode != kLBControlMode && mode != kLBPlayMode); - } - } - // TODO: fading between pages bool fade = false; if (filename.hasSuffix(" fade")) { @@ -304,6 +292,18 @@ bool MohawkEngine_LivingBooks::loadPage(LBMode mode, uint page, uint subpage) { return false; } + if (getFeatures() & GF_NO_READONLY) { + if (_readOnly) { + // TODO: make this a warning, after some testing? + error("game detection table is bad (remove GF_NO_READONLY)"); + } else { + // some very early versions of the LB engine don't have + // .r entries in their book info; instead, it is just hardcoded + // like this (which would unfortunately break later games) + _readOnly = (mode != kLBControlMode && mode != kLBPlayMode); + } + } + debug(1, "Stack Version: %d", getResourceVersion()); _curMode = mode; -- cgit v1.2.3