diff options
| author | Travis Howell | 2009-10-21 12:59:10 +0000 |
|---|---|---|
| committer | Travis Howell | 2009-10-21 12:59:10 +0000 |
| commit | 746258f882b74cea1c5d5a34ef6c67e0669cdf09 (patch) | |
| tree | d266519a68dd149709708c4b641d0fb0fa95015e /engines/scumm/scumm.cpp | |
| parent | 1e8883dcccfd490ba8844bb46cc90d5437c6f3f1 (diff) | |
| download | scummvm-rg350-746258f882b74cea1c5d5a34ef6c67e0669cdf09.tar.gz scummvm-rg350-746258f882b74cea1c5d5a34ef6c67e0669cdf09.tar.bz2 scummvm-rg350-746258f882b74cea1c5d5a34ef6c67e0669cdf09.zip | |
Add patch from Tobias, for graphic support (backgrounds/objects) in PCE version of Loom, with minor changes.
svn-id: r45304
Diffstat (limited to 'engines/scumm/scumm.cpp')
| -rw-r--r-- | engines/scumm/scumm.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/engines/scumm/scumm.cpp b/engines/scumm/scumm.cpp index bced8a784d..19c76d6b7d 100644 --- a/engines/scumm/scumm.cpp +++ b/engines/scumm/scumm.cpp @@ -115,6 +115,8 @@ ScummEngine::ScummEngine(OSystem *syst, const DetectorResult &dr) _gdi = new Gdi16Bit(this); } else if (_game.platform == Common::kPlatformNES) { _gdi = new GdiNES(this); + } else if (_game.platform == Common::kPlatformPCEngine) { + _gdi = new GdiPCEngine(this); } else if (_game.version <= 1) { _gdi = new GdiV1(this); } else if (_game.version == 2) { @@ -613,7 +615,7 @@ ScummEngine_v5::ScummEngine_v5(OSystem *syst, const DetectorResult &dr) // All "classic" games (V5 and older) encrypted their data files // with exception of the GF_OLD256 games and the PC-Engine version // of Loom. - if (!(_game.features & GF_OLD256) && _game.platform != Common::kPlatformPCEngine) + if (!(_game.features & GF_OLD256)) _game.features |= GF_USE_KEY; resetCursors(); @@ -1280,6 +1282,9 @@ void ScummEngine::setupCostumeRenderer() { } else if (_game.platform == Common::kPlatformNES) { _costumeRenderer = new NESCostumeRenderer(this); _costumeLoader = new NESCostumeLoader(this); + } else if (_game.platform == Common::kPlatformPCEngine) { + _costumeRenderer = new PCEngineCostumeRenderer(this); + _costumeLoader = new PCEngineCostumeLoader(this); } else { _costumeRenderer = new ClassicCostumeRenderer(this); _costumeLoader = new ClassicCostumeLoader(this); |
