diff options
Diffstat (limited to 'gui/launcher.cpp')
| -rw-r--r-- | gui/launcher.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/gui/launcher.cpp b/gui/launcher.cpp index e7460b1842..ba03f00b1e 100644 --- a/gui/launcher.cpp +++ b/gui/launcher.cpp @@ -65,6 +65,8 @@ enum { kCmdGlobalMIDIOverride = 'OMID', kCmdGlobalVolumeOverride = 'OVOL', + kCmdChooseSoundFontCmd = 'chsf', + kCmdExtraBrowser = 'PEXT', kCmdGameBrowser = 'PGME', kCmdSaveBrowser = 'PSAV' @@ -375,6 +377,18 @@ void EditGameDialog::handleCommand(CommandSender *sender, uint32 cmd, uint32 dat draw(); break; + case kCmdChooseSoundFontCmd: { + BrowserDialog browser("Select SoundFont", false); + + if (browser.runModal() > 0) { + // User made this choice... + FilesystemNode file(browser.getResult()); + _soundFont->setLabel(file.path()); + draw(); + } + break; + } + // Change path for the game case kCmdGameBrowser: { BrowserDialog browser("Select additional game directory", true); |
