mirror of
https://github.com/libretro/RetroArch
synced 2025-02-28 03:39:59 +00:00
Attempt to fix issue #3605
This commit is contained in:
parent
49a9f189e9
commit
9637e4ee29
11
command.c
11
command.c
@ -1596,17 +1596,8 @@ void command_event_save_current_config(int override_type)
|
|||||||
RARCH_ERR("[overrides] %s\n", msg);
|
RARCH_ERR("[overrides] %s\n", msg);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else if (!path_is_config_empty())
|
||||||
{
|
|
||||||
settings_t *settings = config_get_ptr();
|
|
||||||
|
|
||||||
/* Save last core-specific config to the default config location,
|
|
||||||
* needed on consoles for core switching and reusing last good
|
|
||||||
* config for new cores.
|
|
||||||
*/
|
|
||||||
if (settings->config_save_on_exit && !path_is_config_empty())
|
|
||||||
command_event_save_config(path_get_config(), msg, sizeof(msg));
|
command_event_save_config(path_get_config(), msg, sizeof(msg));
|
||||||
}
|
|
||||||
|
|
||||||
if (!string_is_empty(msg))
|
if (!string_is_empty(msg))
|
||||||
runloop_msg_queue_push(msg, 1, 180, true);
|
runloop_msg_queue_push(msg, 1, 180, true);
|
||||||
|
@ -27,6 +27,7 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "frontend.h"
|
#include "frontend.h"
|
||||||
|
#include "../configuration.h"
|
||||||
#include "../ui/ui_companion_driver.h"
|
#include "../ui/ui_companion_driver.h"
|
||||||
#include "../tasks/tasks_internal.h"
|
#include "../tasks/tasks_internal.h"
|
||||||
|
|
||||||
@ -45,6 +46,9 @@
|
|||||||
**/
|
**/
|
||||||
void main_exit(void *args)
|
void main_exit(void *args)
|
||||||
{
|
{
|
||||||
|
settings_t *settings = config_get_ptr();
|
||||||
|
|
||||||
|
if (settings->config_save_on_exit)
|
||||||
command_event(CMD_EVENT_MENU_SAVE_CURRENT_CONFIG, NULL);
|
command_event(CMD_EVENT_MENU_SAVE_CURRENT_CONFIG, NULL);
|
||||||
|
|
||||||
#ifdef HAVE_MENU
|
#ifdef HAVE_MENU
|
||||||
|
Loading…
x
Reference in New Issue
Block a user