MM: MM1: Further MM1 startup fix

This commit is contained in:
Paul Gilbert 2024-05-02 18:30:45 -07:00
parent 3850396fd1
commit 133c189e53

View File

@ -27,6 +27,9 @@
#include "mm/shared/xeen/sound_driver_mt32.h"
#include "mm/xeen/xeen.h"
#include "mm/mm.h"
#ifdef ENABLE_MM1
#include "mm/mm1/mm1.h"
#endif
namespace MM {
namespace Shared {
@ -50,7 +53,11 @@ _musicVolume(0), _sfxVolume(0) {
break;
}
if (g_engine->getGameID() != GType_MightAndMagic1)
if (g_engine->getGameID() != GType_MightAndMagic1
#ifdef ENABLE_MM1
|| static_cast<MM::MM1::MM1Engine *>(g_engine)->isEnhanced()
#endif
)
// Force load effects early so custom instruments for mt32 are loaded before sound is played.
loadEffectsData();