diff options
author | Travis Howell | 2009-02-22 03:40:51 +0000 |
---|---|---|
committer | Travis Howell | 2009-02-22 03:40:51 +0000 |
commit | edc73529af19c57926291656b05b68501b173eb0 (patch) | |
tree | b363c7dd7b047cc9a17fb2d2ea29d5ca8a5dc269 /engines/sci/sci.cpp | |
parent | fcf5e87de6f589a9b8757f4561541faaadf75d38 (diff) | |
download | scummvm-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.cpp | 6 |
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; } |