From ea758485fdf4e47cfd594d0dc709578dad9924b3 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Sun, 20 Jul 2014 00:51:44 +0200 Subject: [PATCH] (General) Add g_defaults.menu_config_dir --- general.h | 1 + settings.c | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/general.h b/general.h index 4a112cb6bb..62b2c2f43d 100644 --- a/general.h +++ b/general.h @@ -124,6 +124,7 @@ enum sound_mode_enums struct defaults { + char menu_config_dir[PATH_MAX]; char config_path[PATH_MAX]; char core_path[PATH_MAX]; char autoconfig_dir[PATH_MAX]; diff --git a/settings.c b/settings.c index 60d8de00d0..dee747f46a 100644 --- a/settings.c +++ b/settings.c @@ -516,6 +516,10 @@ void config_set_defaults(void) #ifdef HAVE_OVERLAY if (*g_defaults.overlay_dir) strlcpy(g_extern.overlay_dir, g_defaults.overlay_dir, sizeof(g_extern.overlay_dir)); +#endif +#ifdef HAVE_MENU + if (*g_defaults.menu_config_dir) + strlcpy(g_settings.menu_config_directory, g_defaults.menu_config_dir, sizeof(g_settings.menu_config_directory)); #endif if (*g_defaults.shader_dir) strlcpy(g_settings.video.shader_dir, g_defaults.shader_dir, sizeof(g_settings.video.shader_dir));