Mercurial > repos > blastem
diff blastem.c @ 1489:637fbc3b5063 nuklear_ui
Added code to persist config back to a file
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Wed, 29 Nov 2017 08:41:37 -0800 |
parents | 6a35815cc409 |
children | c59adc305e46 |
line wrap: on
line diff
--- a/blastem.c Sun Nov 26 20:19:36 2017 -0800 +++ b/blastem.c Wed Nov 29 08:41:37 2017 -0800 @@ -286,6 +286,11 @@ 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 @@ } } + atexit(save_config); + #ifndef DISABLE_NUKLEAR if (use_nuklear) { blastem_nuklear_init(!menu);