From c021759ad2f0fdb723f98a62739bdf6d5de9c350 Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Wed, 22 Oct 2014 20:43:22 -0400 Subject: MADS: Add md5 checks for the asound.00* sound drivers The implementation of the sound driver code relies on the data for each sound being at specific locations in the files, so this ensures that if any language version changes the sound files, we'll know about it --- engines/mads/sound.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'engines/mads/sound.cpp') diff --git a/engines/mads/sound.cpp b/engines/mads/sound.cpp index d0aa770a4d..1652550ba3 100644 --- a/engines/mads/sound.cpp +++ b/engines/mads/sound.cpp @@ -39,6 +39,15 @@ SoundManager::SoundManager(MADSEngine *vm, Audio::Mixer *mixer) { _opl = OPL::Config::create(); _opl->init(11025); + + // Validate sound files + switch (_vm->getGameID()) { + case GType_RexNebular: + Nebular::ASound::validate(); + break; + default: + break; + } } SoundManager::~SoundManager() { -- cgit v1.2.3