summaryrefslogtreecommitdiffstats
path: root/options
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-06-26 18:12:28 +0200
committerwm4 <wm4@nowhere>2014-06-26 19:43:23 +0200
commit0dcde951b9593535bd5da1ae609b55d35f7e36b3 (patch)
tree53b3b835e4c481a91acc7985b495511a9e8b0e5a /options
parent236fcd36483101ad59c0de7fbd1c03913b19b647 (diff)
downloadmpv-0dcde951b9593535bd5da1ae609b55d35f7e36b3.tar.bz2
mpv-0dcde951b9593535bd5da1ae609b55d35f7e36b3.tar.xz
player: create config dir if it doesn't exist
This was dropped in the commit adding XDG support, probably accidentally. Also normalize some whitespace.
Diffstat (limited to 'options')
-rw-r--r--options/path.c5
1 files changed, 1 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)
{