mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-28 06:53:40 +00:00
Attempt to fix a blank banks list of ADLMIDI
That happen because of silly dependency on soundfonts list which is totally unneeded to ADLMIDI as it uses embedded banks or external banks in a different format. https://forum.zdoom.org/viewtopic.php?f=104&t=59997&p=1047184
This commit is contained in:
parent
b952653303
commit
74c5bab075
1 changed files with 3 additions and 3 deletions
|
@ -1429,11 +1429,11 @@ static void InitMusicMenus()
|
||||||
|
|
||||||
if (menu != nullptr)
|
if (menu != nullptr)
|
||||||
{
|
{
|
||||||
if (soundfonts.Size() > 0)
|
int adl_banks_count = adl_getBanksCount();
|
||||||
|
if (adl_banks_count > 0)
|
||||||
{
|
{
|
||||||
int adl_banks_count = adl_getBanksCount();
|
|
||||||
const char *const *adl_bank_names = adl_getBankNames();
|
const char *const *adl_bank_names = adl_getBankNames();
|
||||||
for(int i=0; i < adl_banks_count; i++)
|
for (int i=0; i < adl_banks_count; i++)
|
||||||
{
|
{
|
||||||
auto it = CreateOptionMenuItemCommand(adl_bank_names[i], FStringf("adl_bank %d", i), true);
|
auto it = CreateOptionMenuItemCommand(adl_bank_names[i], FStringf("adl_bank %d", i), true);
|
||||||
static_cast<DOptionMenuDescriptor*>(*menu)->mItems.Push(it);
|
static_cast<DOptionMenuDescriptor*>(*menu)->mItems.Push(it);
|
||||||
|
|
Loading…
Reference in a new issue