Simplify the detection code

This commit is contained in:
Jordi Vilalta Prat 2010-01-24 22:34:53 +08:00 committed by Scott Thomas
parent 18e3e02316
commit 27cc3ca035
3 changed files with 42 additions and 111 deletions

View file

@ -40,7 +40,7 @@ namespace Stark {
StarkEngine *g_stark = NULL;
GfxBase *g_driver = NULL;
StarkEngine::StarkEngine(OSystem *syst, const StarkGameDescription *gameDesc) : Engine(syst), _gameDescription(gameDesc) {
StarkEngine::StarkEngine(OSystem *syst, const ADGameDescription *gameDesc) : Engine(syst), _gameDescription(gameDesc) {
_mixer->setVolumeForSoundType(Audio::Mixer::kPlainSoundType, 127);
_mixer->setVolumeForSoundType(Audio::Mixer::kSFXSoundType, ConfMan.getInt("sfx_volume"));
_mixer->setVolumeForSoundType(Audio::Mixer::kSpeechSoundType, ConfMan.getInt("speech_volume"));