mirror of
https://github.com/libretro/RetroArch
synced 2025-04-17 02:43:03 +00:00
Cleanup
This commit is contained in:
parent
df9f1585de
commit
0e5e45595e
@ -511,7 +511,7 @@ static int file_load_with_detect_core_wrapper(size_t idx, size_t entry_idx,
|
|||||||
switch (ret)
|
switch (ret)
|
||||||
{
|
{
|
||||||
case -1:
|
case -1:
|
||||||
task_push_content_load_default(new_core_path, NULL,
|
task_push_content_load_default(new_core_path, def_info.s,
|
||||||
&content_info, CORE_TYPE_PLAIN,
|
&content_info, CORE_TYPE_PLAIN,
|
||||||
CONTENT_MODE_LOAD_CONTENT_WITH_NEW_CORE_FROM_MENU,
|
CONTENT_MODE_LOAD_CONTENT_WITH_NEW_CORE_FROM_MENU,
|
||||||
NULL, NULL);
|
NULL, NULL);
|
||||||
@ -2368,7 +2368,7 @@ static int action_ok_load_archive_detect_core(const char *path,
|
|||||||
switch (ret)
|
switch (ret)
|
||||||
{
|
{
|
||||||
case -1:
|
case -1:
|
||||||
task_push_content_load_default(new_core_path, NULL,
|
task_push_content_load_default(new_core_path, def_info.s,
|
||||||
&content_info,
|
&content_info,
|
||||||
CORE_TYPE_PLAIN,
|
CORE_TYPE_PLAIN,
|
||||||
CONTENT_MODE_LOAD_CONTENT_WITH_NEW_CORE_FROM_MENU,
|
CONTENT_MODE_LOAD_CONTENT_WITH_NEW_CORE_FROM_MENU,
|
||||||
|
@ -125,7 +125,8 @@ error:
|
|||||||
* selection needs to be made from a list, otherwise
|
* selection needs to be made from a list, otherwise
|
||||||
* returns true and fills in @s with path to core.
|
* returns true and fills in @s with path to core.
|
||||||
**/
|
**/
|
||||||
bool menu_content_find_first_core(menu_content_ctx_defer_info_t *def_info, bool load_content_with_current_core,
|
bool menu_content_find_first_core(menu_content_ctx_defer_info_t *def_info,
|
||||||
|
bool load_content_with_current_core,
|
||||||
char *new_core_path, size_t len)
|
char *new_core_path, size_t len)
|
||||||
{
|
{
|
||||||
const core_info_t *info = NULL;
|
const core_info_t *info = NULL;
|
||||||
@ -187,8 +188,6 @@ bool menu_content_find_first_core(menu_content_ctx_defer_info_t *def_info, bool
|
|||||||
if (info)
|
if (info)
|
||||||
strlcpy(new_core_path, info->path, len);
|
strlcpy(new_core_path, info->path, len);
|
||||||
|
|
||||||
runloop_ctl(RUNLOOP_CTL_SET_CONTENT_PATH, def_info->s);
|
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user