diff options
author | Michael Pavone <pavone@retrodev.com> | 2017-11-29 08:41:37 -0800 |
---|---|---|
committer | Michael Pavone <pavone@retrodev.com> | 2017-11-29 08:41:37 -0800 |
commit | 0b409a1a9ccc9d7d566a0a867eec4f6eb5a1f5e1 (patch) | |
tree | c639350be2b7a0db5aa3d4dae3c8ce2cce80a4aa /blastem.c | |
parent | d064c9a6c6ea4aff356b5cde90f5afc92cb705f4 (diff) |
Added code to persist config back to a file
--HG--
branch : nuklear_ui
Diffstat (limited to 'blastem.c')
-rw-r--r-- | blastem.c | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -286,6 +286,11 @@ void init_system_with_media(char *path, system_type force_stype) update_title(info.name); } +static void save_config(void) +{ + persist_config(config); +} + int main(int argc, char ** argv) { set_exe_str(argv[0]); @@ -521,6 +526,8 @@ int main(int argc, char ** argv) } } + atexit(save_config); + #ifndef DISABLE_NUKLEAR if (use_nuklear) { blastem_nuklear_init(!menu); |