SystemService: Persist "wait vsync" setting to disk

This setting has a significant impact on system load, so users may want
xsystem4 to remember their preference.

This implementation uses a JSON format, while the AliceSoft's
implementation saves it to a binary file (WindowSetting.sav).

This only records the wait_vsync setting, since the other fields in
window_settings are currently no-op.
This commit is contained in:
kichikuou
2025-02-23 11:02:27 +09:00
parent 6a36fc8f53
commit bf3c4feb9d
4 changed files with 47 additions and 2 deletions
+1
View File
@@ -23,6 +23,7 @@
void json_load_page(struct page *page, cJSON *vars, bool call_dtors);
int save_json(const char *filename, cJSON *json);
cJSON *load_json(const char *filename);
int save_globals(const char *keyname, const char *filename, const char *group_name, int *n);
int load_globals(const char *keyname, const char *filename, const char *group_name, int *n);
int delete_save_file(const char *filename);