Add main_exit_save_config

This commit is contained in:
twinaphex 2014-12-31 13:22:08 +01:00
parent dd713037b0
commit c76a293a2e
2 changed files with 10 additions and 3 deletions

View File

@ -66,10 +66,8 @@ int main_entry_decide(signature(), args_type() args)
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)
{
/* 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)
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)
{

View File

@ -28,6 +28,8 @@ extern "C" {
void main_exit(args_type() args);
void main_exit_save_config(void);
returntype main_entry(signature());
bool main_load_content(int argc, char **argv,