Fix more code when compiling without menu support

This commit is contained in:
twinaphex 2018-08-16 09:59:51 +02:00
parent e2e43e6ade
commit 6266065384
2 changed files with 9 additions and 8 deletions

View File

@ -255,13 +255,14 @@ bool command_set_shader(const char *arg)
static bool command_version(const char* arg)
{
char reply[256] = {0};
char reply[256] = {0};
sprintf(reply, "%s\n", PACKAGE_VERSION);
sprintf(reply, "%s\n", PACKAGE_VERSION);
#if defined(HAVE_CHEEVOS) && (defined(HAVE_STDIN_CMD) || defined(HAVE_NETWORK_CMD) && defined(HAVE_NETWORKING))
command_reply(reply, strlen(reply));
command_reply(reply, strlen(reply));
#endif
return true;
return true;
}
#if defined(HAVE_COMMAND) && defined(HAVE_CHEEVOS)
@ -556,10 +557,10 @@ bool command_network_send(const char *cmd_)
}
free(command);
return ret;
#else
return false;
if (ret)
return true;
#endif
return false;
}
#ifdef HAVE_STDIN_CMD

View File

@ -832,7 +832,6 @@ static void gl_set_osd_msg(void *data,
font_driver_render_msg(video_info, font, msg, (const struct font_params *)params);
}
#if defined(HAVE_MENU)
static void gl_show_mouse(void *data, bool state)
{
video_context_driver_show_mouse(&state);
@ -847,6 +846,7 @@ static struct video_shader *gl_get_current_shader(void *data)
return shader_info.data;
}
#if defined(HAVE_MENU)
static INLINE void gl_draw_texture(gl_t *gl, video_frame_info_t *video_info)
{
video_shader_ctx_coords_t coords;