Core run init failure forces return to menu

Gracefully loads dummy core instead of running lots of unexpected bad behavior.
This commit is contained in:
IAmBoring 2021-01-07 03:38:27 +00:00 committed by GitHub
parent 11809bd365
commit 510bed6655
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -34536,7 +34536,7 @@ bool retroarch_main_init(int argc, char *argv[])
{
RARCH_ERR("%s: \"%s\"\n",
msg_hash_to_str(MSG_FATAL_ERROR_RECEIVED_IN), p_rarch->error_string);
return false;
goto error;
}
p_rarch->rarch_error_on_init = true;
@ -36799,7 +36799,15 @@ static enum runloop_state runloop_check_state(
}
if (!menu_driver_iterate(&iter, current_time))
retroarch_menu_running_finished(false);
{
if (p_rarch->rarch_error_on_init)
{
content_ctx_info_t content_info = {0};
task_push_start_dummy_core(&content_info);
}
else
retroarch_menu_running_finished(false);
}
if (focused || !p_rarch->runloop_idle)
{