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

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

parent cb0c1e83
Branches
Tags
1 merge request!463MRC mods by Codefenix (2024-10-20)
Pipeline #1946 passed
......@@ -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
,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);
return iniKeyExists(*lp, section, key) == FALSE;
}
......@@ -808,6 +808,9 @@ style.section_separator = "";
/* JavaScript operating parameters */
if(!sbbs_set_js_settings(lp,section,&global->js,NULL,&style))
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