aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/sci.cpp
diff options
context:
space:
mode:
authorTravis Howell2009-02-22 03:40:51 +0000
committerTravis Howell2009-02-22 03:40:51 +0000
commitedc73529af19c57926291656b05b68501b173eb0 (patch)
treeb363c7dd7b047cc9a17fb2d2ea29d5ca8a5dc269 /engines/sci/sci.cpp
parentfcf5e87de6f589a9b8757f4561541faaadf75d38 (diff)
downloadscummvm-rg350-edc73529af19c57926291656b05b68501b173eb0.tar.gz
scummvm-rg350-edc73529af19c57926291656b05b68501b173eb0.tar.bz2
scummvm-rg350-edc73529af19c57926291656b05b68501b173eb0.zip
Add resource version option to game detection table, for games version(s) with undetected/unexpected resource types.
svn-id: r38776
Diffstat (limited to 'engines/sci/sci.cpp')
-rw-r--r--engines/sci/sci.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/engines/sci/sci.cpp b/engines/sci/sci.cpp
index eb85452864..4d5a59343a 100644
--- a/engines/sci/sci.cpp
+++ b/engines/sci/sci.cpp
@@ -206,7 +206,7 @@ Common::Error SciEngine::go() {
script_debug_flag = 0;
sci_version_t version;
- int res_version = SCI_VERSION_AUTODETECT;
+ int res_version = getResourceVersion();
// FIXME. An evil hack until File class will be used properly
chdir(ConfMan.get("path").c_str());
@@ -332,6 +332,10 @@ int SciEngine::getVersion() const {
return _gameDescription->version;
}
+int SciEngine::getResourceVersion() const {
+ return _gameDescription->res_version;
+}
+
Common::Language SciEngine::getLanguage() const {
return _gameDescription->desc.language;
}