aboutsummaryrefslogtreecommitdiff
path: root/gui
diff options
context:
space:
mode:
authorMax Horn2003-11-05 01:22:19 +0000
committerMax Horn2003-11-05 01:22:19 +0000
commitc207fe6a95205d58ac25e5ba2f8f95852b3d4898 (patch)
tree04eddb7ecf58f2bb44add90081ccefc4a08421c6 /gui
parent4cff7c8b97d9d4fa1013c7c7637d571d10f14538 (diff)
downloadscummvm-rg350-c207fe6a95205d58ac25e5ba2f8f95852b3d4898.tar.gz
scummvm-rg350-c207fe6a95205d58ac25e5ba2f8f95852b3d4898.tar.bz2
scummvm-rg350-c207fe6a95205d58ac25e5ba2f8f95852b3d4898.zip
added multi_midi/native_mt32 settings (we *really* need to come up with a good way to share code between GlobalOptionsDialog and EditGameDialog)
svn-id: r11145
Diffstat (limited to 'gui')
-rw-r--r--gui/launcher.cpp16
-rw-r--r--gui/options.cpp10
2 files changed, 21 insertions, 5 deletions
diff --git a/gui/launcher.cpp b/gui/launcher.cpp
index 01fd021f16..e6e3ba0a40 100644
--- a/gui/launcher.cpp
+++ b/gui/launcher.cpp
@@ -95,6 +95,9 @@ protected:
PopUpWidget *_gfxPopUp;
CheckboxWidget *_fullscreenCheckbox;
CheckboxWidget *_aspectCheckbox;
+
+ CheckboxWidget *_multiMidiCheckbox;
+ CheckboxWidget *_mt32Checkbox;
};
EditGameDialog::EditGameDialog(const String &domain, GameSettings target)
@@ -215,6 +218,17 @@ EditGameDialog::EditGameDialog(const String &domain, GameSettings target)
tab->addTab("Audio");
yoffset = vBorder;
+ // Multi midi setting
+ _multiMidiCheckbox = new CheckboxWidget(tab, 10, yoffset, 280, 16, "Mixed Adlib/MIDI mode");
+ _multiMidiCheckbox->setState(ConfMan.getBool("multi_midi", _domain));
+ yoffset += 16;
+
+ // Native mt32 setting
+ _mt32Checkbox = new CheckboxWidget(tab, 10, yoffset, 280, 16, "True Roland MT-32 (disable GM emulation)");
+ _mt32Checkbox->setState(ConfMan.getBool("native_mt32", _domain));
+ yoffset += 16;
+
+
// TODO: Volume/driver/midi/... settings
@@ -242,6 +256,8 @@ void EditGameDialog::handleCommand(CommandSender *sender, uint32 cmd, uint32 dat
ConfMan.set("description", _descriptionWidget->getLabel(), newDomain);
ConfMan.set("fullscreen", _fullscreenCheckbox->getState(), newDomain);
ConfMan.set("aspect_ratio", _aspectCheckbox->getState(), newDomain);
+ ConfMan.set("multi_midi", _multiMidiCheckbox->getState(), newDomain);
+ ConfMan.set("native_mt32", _mt32Checkbox->getState(), newDomain);
Common::Language lang = (Common::Language)_langPopUp->getSelectedTag();
if (lang < 0)
diff --git a/gui/options.cpp b/gui/options.cpp
index 7d608a9965..0ab7d5fc0e 100644
--- a/gui/options.cpp
+++ b/gui/options.cpp
@@ -157,19 +157,17 @@ GlobalOptionsDialog::GlobalOptionsDialog(GameDetector &detector)
_sfxVolumeLabel->setFlags(WIDGET_CLEARBG);
yoffset += 16;
-#if 1
- // TODO: cd drive setting
- // TODO: multi midi setting
- // TODO: native mt32 setting
+ // Multi midi setting
_multiMidiCheckbox = new CheckboxWidget(tab, 10, yoffset, 280, 16, "Mixed Adlib/MIDI mode");
_multiMidiCheckbox->setState(ConfMan.getBool("multi_midi"));
yoffset += 16;
+ // Native mt32 setting
_mt32Checkbox = new CheckboxWidget(tab, 10, yoffset, 280, 16, "True Roland MT-32 (disable GM emulation)");
_mt32Checkbox->setState(ConfMan.getBool("native_mt32"));
yoffset += 16;
-#endif
+ // TODO: cd drive setting
//
// 3) The miscellaneous tab
@@ -268,6 +266,8 @@ void GlobalOptionsDialog::handleCommand(CommandSender *sender, uint32 cmd, uint3
ConfMan.set("sfx_volume", _sfxVolumeSlider->getValue());
ConfMan.set("fullscreen", _fullscreenCheckbox->getState());
ConfMan.set("aspect_ratio", _aspectCheckbox->getState());
+ ConfMan.set("multi_midi", _multiMidiCheckbox->getState());
+ ConfMan.set("native_mt32", _mt32Checkbox->getState());
const MidiDriverDescription *md = getAvailableMidiDrivers();
for (; md->name; md++) {