mirror of
https://github.com/libretro/RetroArch
synced 2025-01-31 15:32:59 +00:00
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:
parent
11809bd365
commit
510bed6655
12
retroarch.c
12
retroarch.c
@ -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)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user