From 359a71c059f89e526fceba23d766d52579db9f57 Mon Sep 17 00:00:00 2001 From: mazmazz Date: Mon, 27 Aug 2018 08:40:24 -0400 Subject: [PATCH] Move cvars to D_RegisterClientCommands for config recall --- src/d_netcmd.c | 3 +++ src/sdl/mixer_sound.c | 3 --- 2 files changed, 3 insertions(+), 3 deletions(-) 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);