diff options
author | wm4 <wm4@nowhere> | 2014-06-26 18:06:31 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-06-26 19:41:48 +0200 |
commit | 236fcd36483101ad59c0de7fbd1c03913b19b647 (patch) | |
tree | 146d73825bdc1fd4c657f86b5c09e1389bd5c034 /osdep/path.h | |
parent | c63378d41cdb004bac8e400bef8f3e73c5123de7 (diff) | |
download | mpv-236fcd36483101ad59c0de7fbd1c03913b19b647.tar.bz2 mpv-236fcd36483101ad59c0de7fbd1c03913b19b647.tar.xz |
config: prefer the old config dir if it exists, but XDG doesn't
This means normally the XDG config dir will be used. But if the old
config dir (~/.mpv) exists and the XDG config dir does not, then don't
create it.
To simplify the code, also make mp_path_exists() accept NULL paths. In
that case it's considered as not existing. (Funnily, on Linux this
already worked, because the string is passed directly to the kernel,
and the kernel will just return EFAULT on invalid memory.)
Diffstat (limited to 'osdep/path.h')
0 files changed, 0 insertions, 0 deletions