mirror of
https://github.com/nunuhara/xsystem4.git
synced 2026-10-14 01:59:19 +03:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user