Skip to content
Snippets Groups Projects
Commit 11ca738c authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Write the global sound (WAV) file settings in sbbs_write_ini().

parent 4d959294
Branches
Tags
No related merge requests found
...@@ -92,7 +92,7 @@ void sbbs_get_ini_fname(char* ini_file, char* ctrl_dir, char* pHostName) ...@@ -92,7 +92,7 @@ void sbbs_get_ini_fname(char* ini_file, char* ctrl_dir, char* pHostName)
static BOOL iniSetStringWithGlobalDefault(str_list_t* lp, const char* section, const char* key static BOOL iniSetStringWithGlobalDefault(str_list_t* lp, const char* section, const char* key
,const char* value, const char* global_value, ini_style_t* style) ,const char* value, const char* global_value, ini_style_t* style)
{ {
if(strcmp(value, global_value) == 0) { if(value != global_value && strcmp(value, global_value) == 0) {
iniRemoveKey(lp, section, key); iniRemoveKey(lp, section, key);
return iniKeyExists(*lp, section, key) == FALSE; return iniKeyExists(*lp, section, key) == FALSE;
} }
...@@ -808,6 +808,9 @@ style.section_separator = ""; ...@@ -808,6 +808,9 @@ style.section_separator = "";
/* JavaScript operating parameters */ /* JavaScript operating parameters */
if(!sbbs_set_js_settings(lp,section,&global->js,NULL,&style)) if(!sbbs_set_js_settings(lp,section,&global->js,NULL,&style))
break; break;
if(!sbbs_set_sound_settings(lp, section, &global->sound, &global->sound, &style))
break;
} }
/***********************************************************************/ /***********************************************************************/
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment