aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorMax Horn2006-04-01 18:13:06 +0000
committerMax Horn2006-04-01 18:13:06 +0000
commitee62cd3c518cf513cfb1a535af28aaeb74cbe0c0 (patch)
treea6e0a0b651db14fb2db14ed2d590ff6b2a1594b0 /engines
parent9ed2d26db58169f139c115e28d335717c565cce7 (diff)
downloadscummvm-rg350-ee62cd3c518cf513cfb1a535af28aaeb74cbe0c0.tar.gz
scummvm-rg350-ee62cd3c518cf513cfb1a535af28aaeb74cbe0c0.tar.bz2
scummvm-rg350-ee62cd3c518cf513cfb1a535af28aaeb74cbe0c0.zip
Generate an error when kGenAsIs is used with an unsupported platform, instead of silently continuing with a bogus _fileHandle (leading to odd crashes)
svn-id: r21528
Diffstat (limited to 'engines')
-rw-r--r--engines/scumm/scumm.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/engines/scumm/scumm.cpp b/engines/scumm/scumm.cpp
index edec42c241..f504a00a4e 100644
--- a/engines/scumm/scumm.cpp
+++ b/engines/scumm/scumm.cpp
@@ -184,6 +184,8 @@ ScummEngine::ScummEngine(GameDetector *detector, OSystem *syst, const ScummGameS
assert(_game.version >= 5 && _game.heversion == 0);
_fileHandle = new ScummFile();
_containerFile = _substResFileName.expandedName;
+ } else {
+ error("kGenAsIs used with unsupported platform");
}
// If a container file is used, we can turn of file name substitution.