summaryrefslogtreecommitdiffstats
path: root/player/configfiles.c
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 /player/configfiles.c
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 'player/configfiles.c')
-rw-r--r--player/configfiles.c2
1 files changed, 2 insertions, 0 deletions
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;