mirror of
https://github.com/mpv-player/mpv.git
synced 2025-12-28 05:33:14 +00:00
path: do not use old_home for win32 exe dir
Apparently mpv supports loading config files from the same directory as
the mpv.exe. This is a fallback of some sort. It used the old_home
mechanism.
I want to add a warning if old_home exists, but that would always show
the warning on win32. Obviously we don't want that.
Add a separate exe_dir entry to deal with that.
Untested, but probably works.
Mistakenly reverted as part of the default configuration directory
location switch-back in aa18a8e1cd.
Separation of the mpv executable directory from old_path is a
good change now that we warn about the old_config directory also
existing.
Fixes #8232
Fixes #8244
Fixes #8262
This commit is contained in:
@@ -90,7 +90,7 @@ const char *mp_get_platform_path_win(void *talloc_ctx, const char *type)
|
||||
} else {
|
||||
if (strcmp(type, "home") == 0)
|
||||
return mp_get_win_app_dir(talloc_ctx);
|
||||
if (strcmp(type, "old_home") == 0)
|
||||
if (strcmp(type, "exe_dir") == 0)
|
||||
return mp_get_win_exe_dir(talloc_ctx);
|
||||
// Not really true, but serves as a way to return a lowest-priority dir.
|
||||
if (strcmp(type, "global") == 0)
|
||||
|
||||
Reference in New Issue
Block a user