Skip to content

Commit 931e3fc

Browse files
authored
Fix core suggestion with manual core load (#18423)
1 parent 2e8b001 commit 931e3fc

4 files changed

Lines changed: 15 additions & 3 deletions

File tree

intl/msg_hash_us.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5151,7 +5151,7 @@ MSG_HASH(
51515151
)
51525152
MSG_HASH(
51535153
MENU_ENUM_SUBLABEL_CORE_SUGGEST_ALWAYS,
5154-
"Suggest available cores even when a core is already loaded."
5154+
"Suggest available cores even when a core is manually loaded."
51555155
)
51565156
MSG_HASH(
51575157
MENU_ENUM_LABEL_VALUE_USE_BUILTIN_PLAYER,

menu/cbs/menu_cbs_ok.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1948,8 +1948,8 @@ static bool menu_content_find_first_core(
19481948
&supported);
19491949

19501950
#ifdef HAVE_DYNAMIC
1951-
/* Don't suggest cores if a core is already loaded. */
1952-
if ( !path_is_empty(RARCH_PATH_CORE)
1951+
/* Don't suggest cores if a core is manually loaded. */
1952+
if ( !path_is_empty(RARCH_PATH_CORE_LAST)
19531953
&& !config_get_ptr()->bools.core_suggest_always)
19541954
load_content_with_current_core = true;
19551955
#endif

menu/menu_driver.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8114,6 +8114,14 @@ int generic_menu_entry_action(
81148114
menu_st->flags &= ~(MENU_ST_FLAG_PENDING_CLOSE_CONTENT
81158115
| MENU_ST_FLAG_PENDING_ENV_SHUTDOWN_FLUSH);
81168116
menu_st->pending_env_shutdown_content_path[0] = '\0';
8117+
8118+
/* Reload core on launch failure if manually loaded */
8119+
if ( !path_is_empty(RARCH_PATH_CORE_LAST)
8120+
&& !(menu_st->flags & MENU_ST_FLAG_PENDING_RELOAD_CORE))
8121+
{
8122+
menu_st->flags |= MENU_ST_FLAG_PENDING_RELOAD_CORE;
8123+
menu_st->flags |= MENU_ST_FLAG_PENDING_ENV_SHUTDOWN_FLUSH;
8124+
}
81178125
}
81188126
else if (menu_st->flags & MENU_ST_FLAG_PENDING_RELOAD_CORE)
81198127
{

runloop.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4291,6 +4291,10 @@ static bool event_init_content(
42914291
/* Single-click playlist return */
42924292
if (settings->bools.input_menu_singleclick_playlists)
42934293
menu_state_get_ptr()->flags |= MENU_ST_FLAG_PENDING_CLOSE_CONTENT;
4294+
4295+
/* Return from empty Quick Menu if core is manually loaded and needs reloading */
4296+
if (!path_is_empty(RARCH_PATH_CORE_LAST))
4297+
menu_state_get_ptr()->flags |= MENU_ST_FLAG_PENDING_CLOSE_CONTENT;
42944298
#endif
42954299
return false;
42964300
}

0 commit comments

Comments
 (0)