Skip to content
Snippets Groups Projects
Commit 6a1a33d1 authored by Deucе's avatar Deucе :ok_hand_tone4:
Browse files

Use the new iniAppendSectionWithNamedStrings() function

Should be better than what I was doing.
parent 5020716c
No related branches found
No related tags found
No related merge requests found
Pipeline #8035 failed
...@@ -2933,11 +2933,8 @@ write_webgets(void) ...@@ -2933,11 +2933,8 @@ write_webgets(void)
} }
iniRemoveSection(&ini_file, "WebLists"); iniRemoveSection(&ini_file, "WebLists");
iniAppendSectionWithNamedStrings(&ini_file, "WebLists", settings.webgets, &ini_style);
if (settings.webgets != NULL) {
for (size_t i = 0; settings.webgets[i]; i++)
iniSetString(&ini_file, "WebLists", settings.webgets[i]->name, settings.webgets[i]->value, &ini_style);
}
if ((inifile = fopen(inipath, "w")) != NULL) { if ((inifile = fopen(inipath, "w")) != NULL) {
iniWriteFile(inifile, ini_file); iniWriteFile(inifile, ini_file);
fclose(inifile); fclose(inifile);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment