Subversion Repositories eduke32

Rev

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

Rev 8776 Rev 8778
Line 4473... Line 4473...
4473
        break;
4473
        break;
4474
#endif
4474
#endif
4475
4475
4476
    case MENU_SOUND_DEVSETUP:
4476
    case MENU_SOUND_DEVSETUP:
4477
#ifndef EDUKE32_RETAIL_MENU
4477
#ifndef EDUKE32_RETAIL_MENU
4478
        ME_SOUND_SF2.name = (!sf2bankfile[0]) ? "Select sound bank..." : sf2bankfile;
-
 
4479
        // enter in file selector = MENU_SOUND_SF2, esc in file selector = MENU_SOUND_DEVSETUP
4478
        // enter in file selector = MENU_SOUND_SF2, esc in file selector = MENU_SOUND_DEVSETUP
-
 
4479
        if (m_previousMenu->menuID == MENU_SOUND_DEVSETUP && !sf2bankfile[0])
-
 
4480
            Bstrcpy(sf2bankfile, SF2_BankFile);
-
 
4481
        ME_SOUND_SF2.name = (!sf2bankfile[0]) ? "Select sound bank..." : sf2bankfile;
4480
        if (m_previousMenu->menuID == MENU_SOUND_SF2 && sf2bankfile[0])
4482
        if (m_previousMenu->menuID == MENU_SOUND_SF2 && sf2bankfile[0])
4481
        {
4483
        {
4482
            // vomit copied from CONFIG_GetMapEntryName()
4484
            // vomit copied from CONFIG_GetMapEntryName()
4483
            char *p = Bstrrchr(sf2bankfile, '/');
4485
            char *p = Bstrrchr(sf2bankfile, '/');
4484
            if (!p) p = Bstrrchr(sf2bankfile,  '\\');
4486
            if (!p) p = Bstrrchr(sf2bankfile,  '\\');