Mercurial > hg > xmms-sid
comparison src/xs_config.c @ 200:ec8b735f5418
Support for libNanoSID dropped.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Thu, 19 Aug 2004 19:06:02 +0000 |
parents | e036ad3350d6 |
children | fe684a2ccdc7 |
comparison
equal
deleted
inserted
replaced
199:6117c326cc3e | 200:ec8b735f5418 |
---|---|
94 { WTYPE_BUTTON, CTYPE_BOOL, "cfg_oversample", &xs_cfg.oversampleEnable, 0 }, | 94 { WTYPE_BUTTON, CTYPE_BOOL, "cfg_oversample", &xs_cfg.oversampleEnable, 0 }, |
95 { WTYPE_SPIN, CTYPE_INT, "cfg_oversample_factor",&xs_cfg.oversampleFactor, 0 }, | 95 { WTYPE_SPIN, CTYPE_INT, "cfg_oversample_factor",&xs_cfg.oversampleFactor, 0 }, |
96 | 96 |
97 { WTYPE_BGROUP, CTYPE_INT, "cfg_emu_sidplay1", &xs_cfg.playerEngine, XS_ENG_SIDPLAY1 }, | 97 { WTYPE_BGROUP, CTYPE_INT, "cfg_emu_sidplay1", &xs_cfg.playerEngine, XS_ENG_SIDPLAY1 }, |
98 { WTYPE_BGROUP, CTYPE_INT, "cfg_emu_sidplay2", &xs_cfg.playerEngine, XS_ENG_SIDPLAY2 }, | 98 { WTYPE_BGROUP, CTYPE_INT, "cfg_emu_sidplay2", &xs_cfg.playerEngine, XS_ENG_SIDPLAY2 }, |
99 { WTYPE_BGROUP, CTYPE_INT, "cfg_emu_nanosid", &xs_cfg.playerEngine, XS_ENG_NANOSID }, | |
100 { WTYPE_BGROUP, CTYPE_INT, "cfg_emu_mem_real", &xs_cfg.memoryMode, XS_MPU_REAL }, | 99 { WTYPE_BGROUP, CTYPE_INT, "cfg_emu_mem_real", &xs_cfg.memoryMode, XS_MPU_REAL }, |
101 { WTYPE_BGROUP, CTYPE_INT, "cfg_emu_mem_banksw", &xs_cfg.memoryMode, XS_MPU_BANK_SWITCHING }, | 100 { WTYPE_BGROUP, CTYPE_INT, "cfg_emu_mem_banksw", &xs_cfg.memoryMode, XS_MPU_BANK_SWITCHING }, |
102 { WTYPE_BGROUP, CTYPE_INT, "cfg_emu_mem_transrom", &xs_cfg.memoryMode, XS_MPU_TRANSPARENT_ROM }, | 101 { WTYPE_BGROUP, CTYPE_INT, "cfg_emu_mem_transrom", &xs_cfg.memoryMode, XS_MPU_TRANSPARENT_ROM }, |
103 { WTYPE_BGROUP, CTYPE_INT, "cfg_emu_mem_playsid", &xs_cfg.memoryMode, XS_MPU_PLAYSID_ENVIRONMENT }, | 102 { WTYPE_BGROUP, CTYPE_INT, "cfg_emu_mem_playsid", &xs_cfg.memoryMode, XS_MPU_PLAYSID_ENVIRONMENT }, |
104 | 103 |
126 | 125 |
127 { WTYPE_BUTTON, CTYPE_BOOL, "cfg_stil_enable", &xs_cfg.stilDBEnable, 0 }, | 126 { WTYPE_BUTTON, CTYPE_BOOL, "cfg_stil_enable", &xs_cfg.stilDBEnable, 0 }, |
128 { WTYPE_TEXT, CTYPE_STR, "cfg_stil_dbpath", &xs_cfg.stilDBPath, 0 }, | 127 { WTYPE_TEXT, CTYPE_STR, "cfg_stil_dbpath", &xs_cfg.stilDBPath, 0 }, |
129 { WTYPE_TEXT, CTYPE_STR, "cfg_hvsc_path", &xs_cfg.hvscPath, 0 }, | 128 { WTYPE_TEXT, CTYPE_STR, "cfg_hvsc_path", &xs_cfg.hvscPath, 0 }, |
130 | 129 |
131 { WTYPE_BGROUP, CTYPE_INT, "cfg_subsong_none", &xs_cfg.subsongControl, XS_SSC_NONE }, | 130 { WTYPE_BGROUP, CTYPE_INT, "cfg_subctrl_none", &xs_cfg.subsongControl, XS_SSC_NONE }, |
132 { WTYPE_BGROUP, CTYPE_INT, "cfg_subsong_seek", &xs_cfg.subsongControl, XS_SSC_SEEK }, | 131 { WTYPE_BGROUP, CTYPE_INT, "cfg_subctrl_seek", &xs_cfg.subsongControl, XS_SSC_SEEK }, |
133 { WTYPE_BGROUP, CTYPE_INT, "cfg_subsong_popup", &xs_cfg.subsongControl, XS_SSC_POPUP }, | 132 { WTYPE_BGROUP, CTYPE_INT, "cfg_subctrl_popup", &xs_cfg.subsongControl, XS_SSC_POPUP }, |
134 { WTYPE_BGROUP, CTYPE_INT, "cfg_subsong_patch", &xs_cfg.subsongControl, XS_SSC_PATCH }, | 133 { WTYPE_BGROUP, CTYPE_INT, "cfg_subctrl_patch", &xs_cfg.subsongControl, XS_SSC_PATCH }, |
135 | 134 |
136 { WTYPE_BUTTON, CTYPE_BOOL, "cfg_detectmagic", &xs_cfg.detectMagic, 0 }, | 135 { WTYPE_BUTTON, CTYPE_BOOL, "cfg_detectmagic", &xs_cfg.detectMagic, 0 }, |
137 | 136 |
138 { WTYPE_BUTTON, CTYPE_BOOL, "cfg_ftitle_override", &xs_cfg.titleOverride, 0 }, | 137 { WTYPE_BUTTON, CTYPE_BOOL, "cfg_ftitle_override", &xs_cfg.titleOverride, 0 }, |
139 { WTYPE_TEXT, CTYPE_STR, "cfg_ftitle_format", &xs_cfg.titleFormat, 0 }, | 138 { WTYPE_TEXT, CTYPE_STR, "cfg_ftitle_format", &xs_cfg.titleFormat, 0 }, |
181 #else | 180 #else |
182 #ifdef HAVE_SIDPLAY1 | 181 #ifdef HAVE_SIDPLAY1 |
183 xs_cfg.playerEngine = XS_ENG_SIDPLAY1; | 182 xs_cfg.playerEngine = XS_ENG_SIDPLAY1; |
184 xs_cfg.memoryMode = XS_MPU_BANK_SWITCHING; | 183 xs_cfg.memoryMode = XS_MPU_BANK_SWITCHING; |
185 #else | 184 #else |
186 #ifdef HAVE_NANOSID | |
187 xs_cfg.playerEngine = XS_ENG_NANOSID; | |
188 #else | |
189 #error This should not happen! No emulator engines configured in! | 185 #error This should not happen! No emulator engines configured in! |
190 #endif | |
191 #endif | 186 #endif |
192 #endif | 187 #endif |
193 | 188 |
194 xs_cfg.clockSpeed = XS_CLOCK_PAL; | 189 xs_cfg.clockSpeed = XS_CLOCK_PAL; |
195 xs_cfg.forceSpeed = FALSE; | 190 xs_cfg.forceSpeed = FALSE; |
635 gtk_widget_set_sensitive(LUW("cfg_emu_sidplay2_hardsid"), FALSE); | 630 gtk_widget_set_sensitive(LUW("cfg_emu_sidplay2_hardsid"), FALSE); |
636 #endif | 631 #endif |
637 } | 632 } |
638 | 633 |
639 | 634 |
640 void xs_cfg_emu_nanosid_toggled(GtkToggleButton *togglebutton, gpointer user_data) | |
641 { | |
642 } | |
643 | |
644 | |
645 void xs_cfg_oversample_toggled(GtkToggleButton *togglebutton, gpointer user_data) | 635 void xs_cfg_oversample_toggled(GtkToggleButton *togglebutton, gpointer user_data) |
646 { | 636 { |
647 gboolean isActive = GTK_TOGGLE_BUTTON(LUW("cfg_oversample"))->active; | 637 gboolean isActive = GTK_TOGGLE_BUTTON(LUW("cfg_oversample"))->active; |
648 | 638 |
649 gtk_widget_set_sensitive(LUW("cfg_oversample_factor"), isActive); | 639 gtk_widget_set_sensitive(LUW("cfg_oversample_factor"), isActive); |
756 | 746 |
757 #ifndef HAVE_SIDPLAY2 | 747 #ifndef HAVE_SIDPLAY2 |
758 gtk_widget_set_sensitive(LUW("cfg_emu_sidplay2"), FALSE); | 748 gtk_widget_set_sensitive(LUW("cfg_emu_sidplay2"), FALSE); |
759 #endif | 749 #endif |
760 | 750 |
761 #ifndef HAVE_NANOSID | |
762 gtk_widget_set_sensitive(LUW("cfg_emu_nanosid"), FALSE); | |
763 #endif | |
764 | |
765 #ifndef HAVE_XMMSEXTRA | 751 #ifndef HAVE_XMMSEXTRA |
766 gtk_widget_set_sensitive(LUW("cfg_ftitle_override"), FALSE); | 752 gtk_widget_set_sensitive(LUW("cfg_ftitle_override"), FALSE); |
767 xs_cfg.titleOverride = TRUE; | 753 xs_cfg.titleOverride = TRUE; |
768 #endif | 754 #endif |
769 | 755 |
770 #ifndef HAVE_SONG_POSITION | 756 #ifndef HAVE_SONG_POSITION |
771 gtk_widget_set_sensitive(LUW("cfg_subsong_patch"), FALSE); | 757 gtk_widget_set_sensitive(LUW("cfg_subctrl_patch"), FALSE); |
772 #endif | 758 #endif |
773 | 759 |
774 /* Update the widget sensitivities */ | 760 /* Update the widget sensitivities */ |
775 xs_cfg_emu_filters_toggled(NULL, NULL); | 761 xs_cfg_emu_filters_toggled(NULL, NULL); |
776 xs_cfg_ftitle_override_toggled(NULL, NULL); | 762 xs_cfg_ftitle_override_toggled(NULL, NULL); |
777 xs_cfg_emu_sidplay1_toggled(NULL, NULL); | 763 xs_cfg_emu_sidplay1_toggled(NULL, NULL); |
778 xs_cfg_emu_sidplay2_toggled(NULL, NULL); | 764 xs_cfg_emu_sidplay2_toggled(NULL, NULL); |
779 xs_cfg_emu_nanosid_toggled(NULL, NULL); | |
780 xs_cfg_oversample_toggled(NULL, NULL); | 765 xs_cfg_oversample_toggled(NULL, NULL); |
781 xs_cfg_mintime_enable_toggled(NULL, NULL); | 766 xs_cfg_mintime_enable_toggled(NULL, NULL); |
782 xs_cfg_maxtime_enable_toggled(NULL, NULL); | 767 xs_cfg_maxtime_enable_toggled(NULL, NULL); |
783 xs_cfg_sld_enable_toggled(NULL, NULL); | 768 xs_cfg_sld_enable_toggled(NULL, NULL); |
784 xs_cfg_stil_enable_toggled(NULL, NULL); | 769 xs_cfg_stil_enable_toggled(NULL, NULL); |