From 50b9248624352673287e161185121de097482f0e Mon Sep 17 00:00:00 2001 From: twinaphex Date: Sat, 11 May 2013 02:19:09 +0200 Subject: [PATCH] (QNX/BB) Save config file at exit - compile in config_save_file for all targets from now on --- frontend/frontend_bbqnx.c | 3 +++ general.h | 2 -- settings.c | 2 -- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/frontend/frontend_bbqnx.c b/frontend/frontend_bbqnx.c index fc63e425eb..e1ed73072c 100644 --- a/frontend/frontend_bbqnx.c +++ b/frontend/frontend_bbqnx.c @@ -87,6 +87,9 @@ int rarch_main(int argc, char *argv[]) g_extern.system.shutdown = false; menu_free(); + + config_save_file(g_extern.config_path); + if (g_extern.main_is_init) rarch_main_deinit(); diff --git a/general.h b/general.h index 3b065af8a2..0aa2404f90 100644 --- a/general.h +++ b/general.h @@ -648,9 +648,7 @@ void settings_set(uint64_t settings); #include "conf/config_file.h" bool config_load_file(const char *path); -#ifdef RARCH_CONSOLE bool config_save_file(const char *path); -#endif bool config_read_keybinds(const char *path); bool config_save_keybinds(const char *path); diff --git a/settings.c b/settings.c index 310846beec..36324dd514 100644 --- a/settings.c +++ b/settings.c @@ -895,7 +895,6 @@ static void save_keybinds_player(config_file_t *conf, unsigned player) } } -#ifdef RARCH_CONSOLE bool config_save_file(const char *path) { config_file_t *conf = config_file_new(path); @@ -999,7 +998,6 @@ bool config_save_file(const char *path) return true; } -#endif bool config_save_keybinds(const char *path) {