summaryrefslogtreecommitdiff
path: root/settings.c
diff options
context:
space:
mode:
authorpasky <pasky@openttd.org>2005-03-27 15:42:25 +0000
committerpasky <pasky@openttd.org>2005-03-27 15:42:25 +0000
commit68da82395154ff2d2a6b2f49354cf27df2cc5cc1 (patch)
tree025c800afe780843a500c7cc0b176d165425ea44 /settings.c
parentb9252a268ba852879a6556ecf7aaace4d4611e4b (diff)
downloadopenttd-68da82395154ff2d2a6b2f49354cf27df2cc5cc1.tar.xz
(svn r2088) - Fix: [ 1155158 ] Make extmidi command a config option in addition to the compile-time MIDI switch. Patch by macbaine.
Diffstat (limited to 'settings.c')
-rw-r--r--settings.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/settings.c b/settings.c
index 3623c6ca7..fbc37713d 100644
--- a/settings.c
+++ b/settings.c
@@ -716,6 +716,10 @@ static void save_setting_desc(IniFile *ini, const SettingDesc *desc, const void
// TTD specific INI stuff
//***************************
+#ifndef EXTERNAL_PLAYER
+#define EXTERNAL_PLAYER "timidity"
+#endif
+
static const SettingDesc music_settings[] = {
{"playlist", SDT_UINT8, (void*)0, &msf.playlist, NULL},
{"music_vol", SDT_UINT8, (void*)128, &msf.music_vol, NULL},
@@ -724,6 +728,7 @@ static const SettingDesc music_settings[] = {
{"custom_2", SDT_INTLIST | SDT_UINT8 | lengthof(msf.custom_2) << 16, NULL, &msf.custom_2, NULL},
{"playing", SDT_BOOL, (void*)true, &msf.btn_down, NULL},
{"shuffle", SDT_BOOL, (void*)false, &msf.shuffle, NULL},
+ {"extmidi", SDT_STRINGBUF | (lengthof(msf.extmidi)<<16), EXTERNAL_PLAYER, &msf.extmidi, NULL},
{NULL, 0, NULL, NULL, NULL}
};