mirror of https://github.com/mpv-player/mpv
win32: restore support for exe directory as config directory
Same rationale as b2c2fe7a
but updated to work with path-win.c
Signed-off-by: wm4 <wm4@nowhere>
Merges/closes #543.
This commit is contained in:
parent
315f3a9218
commit
717cdeb95d
|
@ -59,7 +59,11 @@ char *mp_get_win_config_path(const char *filename)
|
|||
res = mp_path_join(NULL, bstr0(temp), bstr0(filename));
|
||||
if (!mp_path_exists(res) || mp_path_isdir(res)) {
|
||||
talloc_free(res);
|
||||
res = NULL;
|
||||
res = mp_path_join(NULL, bstr0(dir), bstr0(filename));
|
||||
if (!mp_path_exists(res) || mp_path_isdir(res)) {
|
||||
talloc_free(res);
|
||||
res = NULL;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue