mirror of
https://github.com/libretro/RetroArch
synced 2025-02-24 00:39:54 +00:00
this should fix errors with --disable-menu
This commit is contained in:
parent
c538d78626
commit
b0b39a1610
@ -1698,7 +1698,6 @@ bool task_push_load_content_with_current_core_from_companion_ui(
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef HAVE_MENU
|
|
||||||
bool task_push_load_content_with_core_from_menu(
|
bool task_push_load_content_with_core_from_menu(
|
||||||
const char *fullpath,
|
const char *fullpath,
|
||||||
content_ctx_info_t *content_info,
|
content_ctx_info_t *content_info,
|
||||||
@ -1716,9 +1715,11 @@ bool task_push_load_content_with_core_from_menu(
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef HAVE_MENU
|
||||||
/* Push quick menu onto menu stack */
|
/* Push quick menu onto menu stack */
|
||||||
if (type != CORE_TYPE_DUMMY)
|
if (type != CORE_TYPE_DUMMY)
|
||||||
menu_driver_ctl(RARCH_MENU_CTL_SET_PENDING_QUICK_MENU, NULL);
|
menu_driver_ctl(RARCH_MENU_CTL_SET_PENDING_QUICK_MENU, NULL);
|
||||||
|
#endif
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@ -1740,14 +1741,16 @@ bool task_push_load_subsystem_with_core_from_menu(
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef HAVE_MENU
|
||||||
/* Push quick menu onto menu stack */
|
/* Push quick menu onto menu stack */
|
||||||
if (type != CORE_TYPE_DUMMY)
|
if (type != CORE_TYPE_DUMMY)
|
||||||
menu_driver_ctl(RARCH_MENU_CTL_SET_PENDING_QUICK_MENU, NULL);
|
menu_driver_ctl(RARCH_MENU_CTL_SET_PENDING_QUICK_MENU, NULL);
|
||||||
|
#endif
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
||||||
void content_get_status(
|
void content_get_status(
|
||||||
bool *contentless,
|
bool *contentless,
|
||||||
|
@ -97,6 +97,7 @@ bool task_push_load_content_from_playlist_from_menu(
|
|||||||
content_ctx_info_t *content_info,
|
content_ctx_info_t *content_info,
|
||||||
retro_task_callback_t cb,
|
retro_task_callback_t cb,
|
||||||
void *user_data);
|
void *user_data);
|
||||||
|
#endif
|
||||||
|
|
||||||
bool task_push_load_content_with_core_from_menu(
|
bool task_push_load_content_with_core_from_menu(
|
||||||
const char *fullpath,
|
const char *fullpath,
|
||||||
@ -110,7 +111,6 @@ bool task_push_load_subsystem_with_core_from_menu(
|
|||||||
enum rarch_core_type type,
|
enum rarch_core_type type,
|
||||||
retro_task_callback_t cb,
|
retro_task_callback_t cb,
|
||||||
void *user_data);
|
void *user_data);
|
||||||
#endif
|
|
||||||
|
|
||||||
RETRO_END_DECLS
|
RETRO_END_DECLS
|
||||||
|
|
||||||
|
@ -86,7 +86,6 @@ static void netplay_crc_scan_callback(void *task_data,
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef HAVE_MENU
|
|
||||||
/* regular core with content file */
|
/* regular core with content file */
|
||||||
if (!string_is_empty(state->core_path) && !string_is_empty(state->content_path)
|
if (!string_is_empty(state->core_path) && !string_is_empty(state->content_path)
|
||||||
&& !state->contentless && !state->current)
|
&& !state->contentless && !state->current)
|
||||||
@ -103,12 +102,17 @@ static void netplay_crc_scan_callback(void *task_data,
|
|||||||
state->content_path, &content_info,
|
state->content_path, &content_info,
|
||||||
CORE_TYPE_PLAIN, NULL, NULL);
|
CORE_TYPE_PLAIN, NULL, NULL);
|
||||||
else
|
else
|
||||||
task_push_load_content_with_new_core_from_menu(
|
{
|
||||||
state->core_path, state->content_path,
|
task_push_load_new_core(state->core_path, NULL,
|
||||||
&content_info, CORE_TYPE_PLAIN, NULL, NULL);
|
&content_info, CORE_TYPE_PLAIN, NULL, NULL);
|
||||||
|
task_push_load_content_with_core_from_menu(
|
||||||
|
state->content_path, &content_info,
|
||||||
|
CORE_TYPE_PLAIN, NULL, NULL);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
#endif
|
|
||||||
/* contentless core */
|
/* contentless core */
|
||||||
if (!string_is_empty(state->core_path) && !string_is_empty(state->content_path)
|
if (!string_is_empty(state->core_path) && !string_is_empty(state->content_path)
|
||||||
&& state->contentless)
|
&& state->contentless)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user