At request by DrMcCoy enable DOSBox OPL2 by default whenever DISABLE_DOSBOX_OPL isn't defined.

svn-id: r40335
This commit is contained in:
Johannes Schickel 2009-05-05 22:06:54 +00:00
parent 08581ed698
commit 16bd319684

View File

@ -38,13 +38,13 @@ OPL *OPL::create(kOplType type) {
assert(!_hasInstance);
_hasInstance = true;
if (type == kOpl2)
return new MAME::OPL_MAME();
else
#ifndef DISABLE_DOSBOX_ADLIB
return new DOSBox::OPL_DOSBox(type);
#else
#ifdef DISABLE_DOSBOX_OPL
if (type != kOpl2)
return 0;
else
return new MAME::OPL_MAME();
#else
return new DOSBox::OPL_DOSBox(type);
#endif
}