mirror of
https://github.com/libretro/RetroArch
synced 2025-02-28 03:39:59 +00:00
Add main_exit_save_config
This commit is contained in:
parent
dd713037b0
commit
c76a293a2e
@ -66,10 +66,8 @@ int main_entry_decide(signature(), args_type() args)
|
|||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
void main_exit(args_type() args)
|
void main_exit_save_config(void)
|
||||||
{
|
{
|
||||||
g_extern.system.shutdown = false;
|
|
||||||
|
|
||||||
if (g_settings.config_save_on_exit && *g_extern.config_path)
|
if (g_settings.config_save_on_exit && *g_extern.config_path)
|
||||||
{
|
{
|
||||||
/* Save last core-specific config to the default config location,
|
/* Save last core-specific config to the default config location,
|
||||||
@ -83,6 +81,13 @@ void main_exit(args_type() args)
|
|||||||
g_settings.core_specific_config)
|
g_settings.core_specific_config)
|
||||||
config_save_file(g_extern.core_specific_config_path);
|
config_save_file(g_extern.core_specific_config_path);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
void main_exit(args_type() args)
|
||||||
|
{
|
||||||
|
g_extern.system.shutdown = false;
|
||||||
|
|
||||||
|
main_exit_save_config();
|
||||||
|
|
||||||
if (g_extern.main_is_init)
|
if (g_extern.main_is_init)
|
||||||
{
|
{
|
||||||
|
@ -28,6 +28,8 @@ extern "C" {
|
|||||||
|
|
||||||
void main_exit(args_type() args);
|
void main_exit(args_type() args);
|
||||||
|
|
||||||
|
void main_exit_save_config(void);
|
||||||
|
|
||||||
returntype main_entry(signature());
|
returntype main_entry(signature());
|
||||||
|
|
||||||
bool main_load_content(int argc, char **argv,
|
bool main_load_content(int argc, char **argv,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user