summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--options/path.c5
-rw-r--r--player/configfiles.c2
2 files changed, 3 insertions, 4 deletions
diff --git a/options/path.c b/options/path.c
index 8fe44a2a2d..e40425fdc7 100644
--- a/options/path.c
+++ b/options/path.c
@@ -45,8 +45,6 @@
#define STRNULL(s) ((s) ? (s) : "(NULL)")
-
-
static void mp_add_xdg_config_dirs(void *talloc_ctx, struct mpv_global *global,
char **dirs, int i)
{
@@ -133,8 +131,6 @@ static char **mp_config_dirs(void *talloc_ctx, struct mpv_global *global)
return ret;
}
-
-
char *mp_find_config_file(void *talloc_ctx, struct mpv_global *global,
const char *filename)
{
@@ -159,6 +155,7 @@ char *mp_find_config_file(void *talloc_ctx, struct mpv_global *global,
STRNULL(res));
return res;
}
+
char **mp_find_all_config_files(void *talloc_ctx, struct mpv_global *global,
const char *filename)
{
diff --git a/player/configfiles.c b/player/configfiles.c
index a44bc93437..855ea64fd1 100644
--- a/player/configfiles.c
+++ b/player/configfiles.c
@@ -64,6 +64,8 @@ void mp_parse_cfgfiles(struct MPContext *mpctx)
if (!opts->load_config)
return;
+ mp_mk_config_dir(mpctx->global, "");
+
m_config_t *conf = mpctx->mconfig;
void *tmp = talloc_new(NULL);
char *conffile;