diff --git a/src/d_netcmd.c b/src/d_netcmd.c index 1e09c1c9e..0f2955e6b 100644 --- a/src/d_netcmd.c +++ b/src/d_netcmd.c @@ -688,6 +688,9 @@ void D_RegisterClientCommands(void) COM_AddCommand("tunes", Command_Tunes_f); COM_AddCommand("restartaudio", Command_RestartAudio_f); CV_RegisterVar(&cv_resetmusic); + CV_RegisterVar(&cv_midiplayer); + CV_RegisterVar(&cv_midisoundfontpath); + CV_RegisterVar(&cv_miditimiditypath); // FIXME: not to be here.. but needs be done for config loading CV_RegisterVar(&cv_globalgamma); diff --git a/src/sdl/mixer_sound.c b/src/sdl/mixer_sound.c index 60ab196e6..3fc329587 100644 --- a/src/sdl/mixer_sound.c +++ b/src/sdl/mixer_sound.c @@ -152,9 +152,6 @@ void I_StartupSound(void) Mix_Init(MIX_INIT_FLAC|MIX_INIT_MOD|MIX_INIT_MP3|MIX_INIT_OGG); #endif #if HAVE_MIXERX - CV_RegisterVar(&cv_midiplayer); - CV_RegisterVar(&cv_midisoundfontpath); - CV_RegisterVar(&cv_miditimiditypath); Mix_SetMidiPlayer(cv_midiplayer.value); Mix_SetSoundFonts(cv_midisoundfontpath.string); Mix_Timidity_addToPathList(cv_miditimiditypath.string);