Subversion Repositories eduke32

Rev

Rev 8772 | Rev 8776 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 8772 Rev 8773
Line 4490... Line 4490...
4490
4490
4491
    case MENU_SOUND_DEVSETUP:
4491
    case MENU_SOUND_DEVSETUP:
4492
#ifndef EDUKE32_RETAIL_MENU
4492
#ifndef EDUKE32_RETAIL_MENU
4493
        ME_SOUND_SF2.name = (!sf2bankfile[0]) ? "Select sound bank..." : sf2bankfile;
4493
        ME_SOUND_SF2.name = (!sf2bankfile[0]) ? "Select sound bank..." : sf2bankfile;
4494
        // enter in file selector = MENU_SOUND_SF2, esc in file selector = MENU_SOUND_DEVSETUP
4494
        // enter in file selector = MENU_SOUND_SF2, esc in file selector = MENU_SOUND_DEVSETUP
4495
        if (m_previousMenu->menuID != MENU_SOUND_SF2 && m_previousMenu->menuID != MENU_SOUND_DEVSETUP)
4495
        if (m_previousMenu->menuID == MENU_SOUND_SF2 && sf2bankfile[0])
-
 
4496
        {
-
 
4497
            // vomit copied from CONFIG_GetMapEntryName()
-
 
4498
            char *p = Bstrrchr(sf2bankfile, '/');
-
 
4499
            if (!p) p = Bstrrchr(sf2bankfile,  '\\');
-
 
4500
            if (p == sf2bankfile) { Bmemmove(sf2bankfile, p+1, Bstrlen(p)); }
-
 
4501
        }
-
 
4502
        else if (m_previousMenu->menuID == MENU_SOUND)
4496
#endif
4503
#endif
4497
            Menu_RefreshSoundProperties();
4504
            Menu_RefreshSoundProperties();
4498
        break;
4505
        break;
4499
4506
4500
    default:
4507
    default: