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:
twinaphex 2013-08-25 15:51:42 +02:00
parent 31946847db
commit 6a3303d2b4
3 changed files with 9 additions and 0 deletions

View File

@ -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;

View File

@ -472,6 +472,8 @@ struct global
msg_queue_t *msg_queue;
bool exec;
// Rewind support.
state_manager_t *state_manager;
void *state_buf;

View File

@ -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);