DEADSOFTWARE

config: allow multiple cfg structures for config update
[flatwaifu.git] / src / sdl2 / main.c
index ae80fe9d6dd8c62f8993994620a0204fe846943d..37b4c26334bfdd97514161b68610c5152d2fb18b 100644 (file)
@@ -110,7 +110,8 @@ static void CFG_load (void) {
 }
 
 static void CFG_save (void) {
-  CFG_update_config("doom2d.cfg", "doom2d.cfg", cfg, "generated by doom2d, do not modify");
+  const cfg_t *list[] = { &cfg, NULL };
+  CFG_update_config("doom2d.cfg", "doom2d.cfg", 1, list, "generated by doom2d, do not modify");
   //CFG_update_config("doom2d.cfg", "doom2d.tmp", cfg, "temporary file");
   //CFG_update_config("doom2d.tmp", "doom2d.cfg", cfg, "generated by doom2d, do not modify");
   //remove("doom2d.tmp");