(OSX) Add default video filter dir for OSX

This commit is contained in:
twinaphex 2014-10-29 07:42:07 +01:00
parent 9c5f92c883
commit 82f4f1a83a
3 changed files with 5 additions and 0 deletions

View File

@ -165,6 +165,7 @@ static void frontend_apple_get_environment_settings(int *argc, char *argv[],
fill_pathname_join(g_defaults.assets_dir, bundle_path_buf, "Contents/Resources/modules/assets", sizeof(g_defaults.assets_dir));
fill_pathname_join(g_defaults.shader_dir, bundle_path_buf, "Contents/Resources/modules/shaders", sizeof(g_defaults.shader_dir));
fill_pathname_join(g_defaults.audio_filter_dir, bundle_path_buf, "Contents/Resources/modules/audio_filters", sizeof(g_defaults.audio_filter_dir));
fill_pathname_join(g_defaults.video_filter_dir, bundle_path_buf, "Contents/Resources/modules/video_filters", sizeof(g_defaults.video_filter_dir));
fill_pathname_join(g_defaults.menu_config_dir, support_path_buf, "RetroArch", sizeof(g_defaults.menu_config_dir));
fill_pathname_join(g_defaults.config_path, g_defaults.menu_config_dir, "retroarch.cfg", sizeof(g_defaults.config_path));
#endif

View File

@ -200,6 +200,7 @@ struct defaults
char core_path[PATH_MAX];
char autoconfig_dir[PATH_MAX];
char audio_filter_dir[PATH_MAX];
char video_filter_dir[PATH_MAX];
char assets_dir[PATH_MAX];
char core_dir[PATH_MAX];
char core_info_dir[PATH_MAX];

View File

@ -532,6 +532,9 @@ static void config_set_defaults(void)
if (*g_defaults.audio_filter_dir)
strlcpy(g_settings.audio.filter_dir,
g_defaults.audio_filter_dir, sizeof(g_settings.audio.filter_dir));
if (*g_defaults.video_filter_dir)
strlcpy(g_settings.video.filter_dir,
g_defaults.video_filter_dir, sizeof(g_settings.video.filter_dir));
if (*g_defaults.assets_dir)
strlcpy(g_settings.assets_directory,
g_defaults.assets_dir, sizeof(g_settings.assets_directory));