aboutsummaryrefslogtreecommitdiff
path: root/engines/agi/agi.cpp
diff options
context:
space:
mode:
authorEugene Sandulenko2007-02-13 15:27:36 +0000
committerEugene Sandulenko2007-02-13 15:27:36 +0000
commit80eb248a0eb22f6ba8e052047e8af3c3bf948087 (patch)
treecb2c86c17aaf931fd9a6e8f17f4ef033e3ad59e9 /engines/agi/agi.cpp
parent433e7d69ac155c03ded74de11b4f1db4dbfc2a2f (diff)
downloadscummvm-rg350-80eb248a0eb22f6ba8e052047e8af3c3bf948087.tar.gz
scummvm-rg350-80eb248a0eb22f6ba8e052047e8af3c3bf948087.tar.bz2
scummvm-rg350-80eb248a0eb22f6ba8e052047e8af3c3bf948087.zip
Get rid of _opt. Cleanup.
svn-id: r25549
Diffstat (limited to 'engines/agi/agi.cpp')
-rw-r--r--engines/agi/agi.cpp26
1 files changed, 11 insertions, 15 deletions
diff --git a/engines/agi/agi.cpp b/engines/agi/agi.cpp
index 5dbddec800..8a629ad87d 100644
--- a/engines/agi/agi.cpp
+++ b/engines/agi/agi.cpp
@@ -375,8 +375,11 @@ int AgiEngine::agiInit() {
break;
}
- _game.gameFlags |= _opt.amigaMode ? ID_AMIGA : 0;
- _game.gameFlags |= _opt.agdsMode ? ID_AGDS : 0;
+ if (getPlatform() == Common::kPlatformAmiga)
+ _game.gameFlags |= ID_AMIGA;
+
+ if (getFeatures() & GF_AGDS)
+ _game.gameFlags |= ID_AGDS;
if (_game.gameFlags & ID_AMIGA)
report("Amiga padded game detected.\n");
@@ -441,11 +444,6 @@ int AgiEngine::agiDetectGame() {
assert(_gameDescription != NULL);
- _opt.amigaMode = (getPlatform() == Common::kPlatformAmiga);
- _opt.agdsMode = ((getFeatures() & AGI_AGDS) == AGI_AGDS);
- _opt.agimouse = ((getFeatures() & AGI_MOUSE) == AGI_MOUSE);
-
-
if(getVersion() <= 0x2999) {
_loader = new AgiLoader_v2(this);
} else {
@@ -564,33 +562,31 @@ AgiEngine::AgiEngine(OSystem *syst) : Engine(syst) {
}
void AgiEngine::initialize() {
- memset(&_opt, 0, sizeof(struct AgiOptions));
- _opt.gamerun = GAMERUN_RUNGAME;
-
// TODO: Some sound emulation modes do not fit our current music
// drivers, and I'm not sure what they are. For now, they might
// as well be called "PC Speaker" and "Not PC Speaker".
switch (MidiDriver::detectMusicDriver(MDT_PCSPK)) {
case MD_PCSPK:
- _opt.soundemu = SOUND_EMU_PC;
+ _soundemu = SOUND_EMU_PC;
break;
default:
- _opt.soundemu = SOUND_EMU_NONE;
+ _soundemu = SOUND_EMU_NONE;
break;
}
if (ConfMan.hasKey("render_mode")) {
- _opt.renderMode = Common::parseRenderMode(ConfMan.get("render_mode").c_str());
+ _renderMode = Common::parseRenderMode(ConfMan.get("render_mode").c_str());
} else if (ConfMan.hasKey("platform")) {
switch (Common::parsePlatform(ConfMan.get("platform"))) {
case Common::kPlatformAmiga:
- _opt.renderMode = Common::kRenderAmiga;
+ _renderMode = Common::kRenderAmiga;
break;
case Common::kPlatformPC:
- _opt.renderMode = Common::kRenderEGA;
+ _renderMode = Common::kRenderEGA;
break;
default:
+ _renderMode = Common::kRenderEGA;
break;
}
}