aboutsummaryrefslogtreecommitdiff
path: root/engines/gob/gob.cpp
diff options
context:
space:
mode:
authorSven Hesse2008-08-30 23:59:46 +0000
committerSven Hesse2008-08-30 23:59:46 +0000
commit805a46b229658782820a5f78a862e19e2533ec18 (patch)
tree9db7571d9d5cc97677e88b61d4a44aef77e5021d /engines/gob/gob.cpp
parent8032491381c88d1386efa1157466f655804d69f4 (diff)
downloadscummvm-rg350-805a46b229658782820a5f78a862e19e2533ec18.tar.gz
scummvm-rg350-805a46b229658782820a5f78a862e19e2533ec18.tar.bz2
scummvm-rg350-805a46b229658782820a5f78a862e19e2533ec18.zip
Added some The Last Dynasty stubs
svn-id: r34217
Diffstat (limited to 'engines/gob/gob.cpp')
-rw-r--r--engines/gob/gob.cpp26
1 files changed, 24 insertions, 2 deletions
diff --git a/engines/gob/gob.cpp b/engines/gob/gob.cpp
index 34443251d8..3bae48c679 100644
--- a/engines/gob/gob.cpp
+++ b/engines/gob/gob.cpp
@@ -62,7 +62,9 @@ const Common::Language GobEngine::_gobToScummVMLang[] = {
Common::EN_USA,
Common::NL_NLD,
Common::KO_KOR,
- Common::HB_ISR
+ Common::HB_ISR,
+ Common::PT_BRA,
+ Common::JA_JPN
};
GobEngine::GobEngine(OSystem *syst) : Engine(syst) {
@@ -120,7 +122,7 @@ void GobEngine::shutdown() {
}
const char *GobEngine::getLangDesc(int16 language) const {
- if ((language < 0) || (language > 8))
+ if ((language < 0) || (language > 10))
language = 2;
return Common::getLanguageDescription(_gobToScummVMLang[language]);
}
@@ -244,6 +246,12 @@ int GobEngine::init() {
case Common::HB_ISR:
_global->_language = 8;
break;
+ case Common::PT_BRA:
+ _global->_language = 9;
+ break;
+ case Common::JA_JPN:
+ _global->_language = 10;
+ break;
default:
// Default to English
_global->_language = 2;
@@ -387,6 +395,20 @@ bool GobEngine::initGameParts() {
_saveLoad = new SaveLoad_v4(this, _targetName.c_str());
break;
+ case kGameTypeDynasty:
+ _init = new Init_v3(this);
+ _video = new Video_v2(this);
+ _inter = new Inter_v5(this);
+ _parse = new Parse_v2(this);
+ _mult = new Mult_v2(this);
+ _draw = new Draw_v2(this);
+ _game = new Game_v2(this);
+ _map = new Map_v4(this);
+ _goblin = new Goblin_v4(this);
+ _scenery = new Scenery_v2(this);
+ _saveLoad = new SaveLoad_v4(this, _targetName.c_str());
+ break;
+
default:
deinitGameParts();
return false;