mirror of
https://github.com/mpv-player/mpv
synced 2025-02-03 05:31:34 +00:00
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
cf6d6666e2
commit
792c1750ec
@ -57,11 +57,15 @@ char *mp_get_win_config_path(const char *filename)
|
||||
char *dir = mp_to_utf8(tmp, w_exedir);
|
||||
char *temp = mp_path_join(tmp, bstr0(dir), bstr0("mpv"));
|
||||
res = mp_path_join(NULL, bstr0(temp), bstr0(filename));
|
||||
if (!mp_path_exists(res) || mp_path_isdir(res)) {
|
||||
talloc_free(res);
|
||||
res = mp_path_join(NULL, bstr0(dir), bstr0(filename));
|
||||
if (!mp_path_exists(res) || mp_path_isdir(res)) {
|
||||
talloc_free(res);
|
||||
res = NULL;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (!res && w_appdir[0]) {
|
||||
char *dir = mp_to_utf8(tmp, w_appdir);
|
||||
|
Loading…
Reference in New Issue
Block a user