(General) Add g_defaults.menu_config_dir

This commit is contained in:
twinaphex 2014-07-20 00:51:44 +02:00
parent 9b8d5b95a5
commit ea758485fd
2 changed files with 5 additions and 0 deletions

View File

@ -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];

View File

@ -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));