Synchronet now requires the libarchive development package (e.g. libarchive-dev on Debian-based Linux distros, libarchive.org for more info) to build successfully.

Commit 53601146 authored by Rob Swindell's avatar Rob Swindell 💬

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

parent cb0c1e83
Pipeline #1946 passed with stage
in 8 minutes and 38 seconds
......@@ -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;
}
/***********************************************************************/
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment