mirror of
https://github.com/ZDoom/ZMusic.git
synced 2024-11-15 00:41:36 +00:00
ADLMIDI: Don't even try to load custom bank if disabled
This commit is contained in:
parent
14c771f609
commit
61f54f9487
1 changed files with 2 additions and 0 deletions
|
@ -126,6 +126,8 @@ ADLMIDIDevice::~ADLMIDIDevice()
|
||||||
int ADLMIDIDevice::LoadCustomBank(const ADLConfig *config)
|
int ADLMIDIDevice::LoadCustomBank(const ADLConfig *config)
|
||||||
{
|
{
|
||||||
const char *bankfile = config->adl_custom_bank.c_str();
|
const char *bankfile = config->adl_custom_bank.c_str();
|
||||||
|
if(!config->adl_use_custom_bank)
|
||||||
|
return 0;
|
||||||
if(!*bankfile)
|
if(!*bankfile)
|
||||||
return 0;
|
return 0;
|
||||||
return (adl_openBankFile(Renderer, bankfile) == 0);
|
return (adl_openBankFile(Renderer, bankfile) == 0);
|
||||||
|
|
Loading…
Reference in a new issue