mirror of
https://github.com/libretro/RetroArch
synced 2025-01-26 18:35:22 +00:00
Need to put extra conditional in when triggering ENVIRON EXEC to
get out of the main iterate loop once so that it can start up the next core with params
This commit is contained in:
parent
31946847db
commit
6a3303d2b4
@ -780,6 +780,7 @@ bool rarch_environment_cb(unsigned cmd, void *data)
|
||||
#elif defined(HAVE_DYNAMIC)
|
||||
g_extern.lifecycle_mode_state |= (1ULL << MODE_LOAD_GAME);
|
||||
#endif
|
||||
g_extern.exec = true;
|
||||
|
||||
break;
|
||||
|
||||
|
@ -472,6 +472,8 @@ struct global
|
||||
|
||||
msg_queue_t *msg_queue;
|
||||
|
||||
bool exec;
|
||||
|
||||
// Rewind support.
|
||||
state_manager_t *state_manager;
|
||||
void *state_buf;
|
||||
|
@ -3059,6 +3059,12 @@ bool rarch_main_iterate(void)
|
||||
if (check_enter_rgui())
|
||||
return false; // Enter menu, don't exit.
|
||||
|
||||
if (g_extern.exec)
|
||||
{
|
||||
g_extern.exec = false;
|
||||
return false;
|
||||
}
|
||||
|
||||
#ifdef HAVE_COMMAND
|
||||
if (driver.command)
|
||||
rarch_cmd_pre_frame(driver.command);
|
||||
|
Loading…
x
Reference in New Issue
Block a user