diff options
-rw-r--r-- | sound/fmopl.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sound/fmopl.cpp b/sound/fmopl.cpp index 7bc33fc724..7b5d4522ec 100644 --- a/sound/fmopl.cpp +++ b/sound/fmopl.cpp @@ -38,13 +38,13 @@ OPL *OPL::create(kOplType type) { assert(!_hasInstance); _hasInstance = true; - if (type == kOpl2) - return new MAME::OPL_MAME(); +#ifdef DISABLE_DOSBOX_OPL + if (type != kOpl2) + return 0; else -#ifndef DISABLE_DOSBOX_ADLIB - return new DOSBox::OPL_DOSBox(type); + return new MAME::OPL_MAME(); #else - return 0; + return new DOSBox::OPL_DOSBox(type); #endif } |