aboutsummaryrefslogtreecommitdiff
path: root/engines/kyra/engine/eob.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/kyra/engine/eob.cpp')
-rw-r--r--engines/kyra/engine/eob.cpp12
1 files changed, 11 insertions, 1 deletions
diff --git a/engines/kyra/engine/eob.cpp b/engines/kyra/engine/eob.cpp
index f9c872dee3..00aeffbe8a 100644
--- a/engines/kyra/engine/eob.cpp
+++ b/engines/kyra/engine/eob.cpp
@@ -45,6 +45,7 @@ EoBEngine::EoBEngine(OSystem *system, const GameFlags &flags)
_doorSwitchShapeEncodeDefs = _doorSwitchCoords = 0;
_dscDoorCoordsExt = 0;
_useMainMenuGUISettings = false;
+ _ttlCfg = 0;
}
EoBEngine::~EoBEngine() {
@@ -58,6 +59,12 @@ Common::Error EoBEngine::init() {
initStaticResource();
+ for (int i = 0; i < ARRAYSIZE(_titleConfig); ++i) {
+ if (_flags.platform == _titleConfig[i].platform)
+ _ttlCfg = &_titleConfig[i];
+ }
+ assert(_ttlCfg);
+
if (_configRenderMode != Common::kRenderCGA)
_itemsOverlay = _res->fileData((_configRenderMode == Common::kRenderEGA) ? "ITEMRMP.EGA" : "ITEMRMP.VGA", 0);
@@ -65,6 +72,9 @@ Common::Error EoBEngine::init() {
_screen->modifyScreenDim(9, 0x01, 0x7D, 0x26, 0x3F);
_screen->modifyScreenDim(12, 0x01, 0x04, 0x14, 0xA0);
+ if (_flags.platform == Common::kPlatformPC98)
+ _screen->modifyScreenDim(28, 0x0A, 0xA4, 0x15, 0x18);
+
_scriptTimersCount = 1;
if (_configRenderMode == Common::kRenderEGA) {
@@ -607,7 +617,7 @@ void EoBEngine::healParty() {
const KyraRpgGUISettings *EoBEngine::guiSettings() const {
if (_flags.platform == Common::kPlatformAmiga)
return _useMainMenuGUISettings ? &_guiSettingsAmigaMainMenu : &_guiSettingsAmiga;
- else if (_configRenderMode == Common::kRenderCGA || _configRenderMode == Common::kRenderEGA)
+ else if (_flags.platform == Common::kPlatformPC98 || _configRenderMode == Common::kRenderCGA || _configRenderMode == Common::kRenderEGA)
return &_guiSettingsEGA;
else
return &_guiSettingsVGA;