From 60158f5247c9ccc1ed6ef700e16a51f5c052f2de Mon Sep 17 00:00:00 2001 From: twinaphex Date: Mon, 1 Aug 2016 18:29:26 +0200 Subject: [PATCH] Make it possible to compile again with ./configure --disable-rgui --- command.c | 1 + configuration.c | 4 ++++ intl/msg_hash_us.c | 2 ++ 3 files changed, 7 insertions(+) diff --git a/command.c b/command.c index d4ac644e04..921d035211 100644 --- a/command.c +++ b/command.c @@ -41,6 +41,7 @@ #include "frontend/frontend_driver.h" #include "audio/audio_driver.h" #include "record/record_driver.h" +#include "file_path_special.h" #include "autosave.h" #include "core_info.h" #include "core_type.h" diff --git a/configuration.c b/configuration.c index e8bda24565..6bce53faab 100644 --- a/configuration.c +++ b/configuration.c @@ -1298,7 +1298,9 @@ static bool config_load_file(const char *path, bool set_defaults) { "sort_savefiles_enable", &settings->sort_savefiles_enable}, { "sort_savestates_enable", &settings->sort_savestates_enable}, { "config_save_on_exit", &settings->config_save_on_exit}, +#ifdef HAVE_MENU { "dpi_override_enable", &settings->menu.dpi.override_enable}, +#endif { "ui_menubar_enable", &settings->ui.menubar_enable}, { "suspend_screensaver_enable", &settings->ui.suspend_screensaver_enable}, { "load_dummy_on_core_shutdown", &settings->load_dummy_on_core_shutdown}, @@ -1458,9 +1460,11 @@ static bool config_load_file(const char *path, bool set_defaults) { "input_overlay_scale", &settings->input.overlay_scale}, { "slowmotion_ratio", &settings->slowmotion_ratio}, { "fastforward_ratio", &settings->fastforward_ratio}, +#ifdef HAVE_MENU { "menu_wallpaper_opacity", &settings->menu.wallpaper.opacity}, { "menu_footer_opacity", &settings->menu.footer.opacity}, { "menu_header_opacity", &settings->menu.header.opacity}, +#endif { "video_aspect_ratio", &settings->video.aspect_ratio}, { "video_refresh_rate", &settings->video.refresh_rate}, { "video_font_size", &settings->video.font_size}, diff --git a/intl/msg_hash_us.c b/intl/msg_hash_us.c index 7cca20419c..fbb10a1130 100644 --- a/intl/msg_hash_us.c +++ b/intl/msg_hash_us.c @@ -1848,6 +1848,7 @@ int menu_hash_get_help_us_enum(enum msg_hash_enums msg, char *s, size_t len) return 0; } +#ifdef HAVE_MENU static const char *menu_hash_to_str_us_label_enum(enum msg_hash_enums msg) { if (msg <= MENU_ENUM_LABEL_INPUT_HOTKEY_BIND_END && @@ -2889,6 +2890,7 @@ static const char *menu_hash_to_str_us_label_enum(enum msg_hash_enums msg) return "null"; } +#endif const char *msg_hash_to_str_us(enum msg_hash_enums msg) {