Fix codepath for HAVE_MENU not being defined

This commit is contained in:
twinaphex 2017-04-23 17:48:45 +02:00
parent 32f4bc4b93
commit eb208b170f
2 changed files with 7 additions and 1 deletions

View File

@ -941,6 +941,7 @@ error:
return false;
}
#ifdef HAVE_MENU
static bool command_event_cmd_exec(const char *data,
content_information_ctx_t *content_ctx,
bool launched_from_cli,
@ -975,6 +976,7 @@ static bool command_event_cmd_exec(const char *data,
return true;
}
#endif
static bool firmware_update_status(
content_information_ctx_t *content_ctx)

View File

@ -58,6 +58,8 @@ static void netplay_crc_scan_callback(void *task_data,
return;
fflush(stdout);
#ifdef HAVE_MENU
if (!string_is_empty(state->core_path) && !string_is_empty(state->content_path) &&
memcmp(state->content_path, "N/A", 3) != 0)
{
@ -68,7 +70,9 @@ static void netplay_crc_scan_callback(void *task_data,
CORE_TYPE_PLAIN,
NULL, NULL);
}
else if (!string_is_empty(state->core_path) && !string_is_empty(state->content_path) &&
else
#endif
if (!string_is_empty(state->core_path) && !string_is_empty(state->content_path) &&
memcmp(state->content_path, "N/A", 3) == 0)
{
content_ctx_info_t content_info = {0};