From 27ada9b7b271ebddef07dcacb5e3f2dbfb19f215 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Sat, 14 Sep 2019 07:24:26 +0200 Subject: [PATCH] Buildfixes for --disable-menu --- retroarch.c | 2 ++ runtime_file.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/retroarch.c b/retroarch.c index 3cf86753fa..c17c13bf50 100644 --- a/retroarch.c +++ b/retroarch.c @@ -2268,8 +2268,10 @@ bool retroarch_apply_shader(enum rarch_shader_type type, const char *preset_path { retroarch_set_runtime_shader_preset(NULL); +#ifdef HAVE_MENU /* reflect in shader manager */ menu_shader_manager_set_preset(menu_shader_get(), type, NULL, false); +#endif /* Display error message */ snprintf(msg, sizeof(msg), "%s %s", diff --git a/runtime_file.c b/runtime_file.c index 111e22a8f9..35e246f2ab 100644 --- a/runtime_file.c +++ b/runtime_file.c @@ -972,7 +972,7 @@ void runtime_update_playlist(playlist_t *playlist, size_t idx) #ifdef HAVE_MENU timedate_style = (enum playlist_sublabel_last_played_style_type)settings->uints.playlist_sublabel_last_played_style; #else - timedate_style = PLAYLIST_LAST_PLAYED_STYLE_YMD_HMS + timedate_style = PLAYLIST_LAST_PLAYED_STYLE_YMD_HMS; #endif /* 'Attach' runtime/last played strings */