mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-23 07:59:42 +00:00
Fix quit on close in CLI mode (#16054)
This should fix #16048 It seems that launched_from_cli is overwritten right after the core unload, which makes RA think it was *not* CLI launched.
This commit is contained in:
parent
99309a4d79
commit
b30aa330aa
@ -5539,6 +5539,9 @@ int action_ok_close_content(const char *path, const char *label, unsigned type,
|
||||
* menu list) */
|
||||
menu_st->selection_ptr = 0;
|
||||
|
||||
/* Check if we need to quit */
|
||||
check_quit_on_close();
|
||||
|
||||
/* Unload core */
|
||||
ret = generic_action_ok_command(CMD_EVENT_UNLOAD_CORE);
|
||||
|
||||
@ -5572,8 +5575,6 @@ int action_ok_close_content(const char *path, const char *label, unsigned type,
|
||||
menu_st->flags &= ~MENU_ST_FLAG_PREVENT_POPULATE;
|
||||
}
|
||||
|
||||
check_quit_on_close();
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user