This commit is contained in:
twinaphex 2016-06-15 18:55:20 +02:00
parent df9f1585de
commit 0e5e45595e
2 changed files with 4 additions and 5 deletions

View File

@ -511,7 +511,7 @@ static int file_load_with_detect_core_wrapper(size_t idx, size_t entry_idx,
switch (ret)
{
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_MODE_LOAD_CONTENT_WITH_NEW_CORE_FROM_MENU,
NULL, NULL);
@ -2368,7 +2368,7 @@ static int action_ok_load_archive_detect_core(const char *path,
switch (ret)
{
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_MODE_LOAD_CONTENT_WITH_NEW_CORE_FROM_MENU,

View File

@ -125,7 +125,8 @@ error:
* selection needs to be made from a list, otherwise
* 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)
{
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)
strlcpy(new_core_path, info->path, len);
runloop_ctl(RUNLOOP_CTL_SET_CONTENT_PATH, def_info->s);
return true;
}