mirror of
https://github.com/mpv-player/mpv
synced 2025-04-01 14:50:07 +00:00
path-win: move state directory to %LOCALAPPDATA%
%LOCALAPPDATA% is where the local application state belongs.
This commit is contained in:
parent
aa05c06873
commit
5fc305fa17
@ -26,6 +26,9 @@ Interface changes
|
||||
|
||||
::
|
||||
|
||||
--- mpv 0.37.0 ---
|
||||
- `--save-position-on-quit` and its associated commands now store state files
|
||||
in %LOCALAPPDATA% instead of %APPDATA% directory by default on Windows.
|
||||
--- mpv 0.36.0 ---
|
||||
- add `--target-contrast`
|
||||
- Target luminance value is now also applied when ICC profile is used.
|
||||
|
@ -1655,6 +1655,8 @@ Other config files (such as ``input.conf``) are in the same directory. See the
|
||||
|
||||
The cache directory is located at ``%LOCALAPPDATA%/mpv/cache``.
|
||||
|
||||
The watch_later directory is located at ``%LOCALAPPDATA%/mpv/watch_later``.
|
||||
|
||||
The environment variable ``$MPV_HOME`` completely overrides these, like on
|
||||
UNIX.
|
||||
|
||||
|
@ -99,6 +99,8 @@ const char *mp_get_platform_path_win(void *talloc_ctx, const char *type)
|
||||
return mp_get_win_app_dir(talloc_ctx);
|
||||
if (strcmp(type, "cache") == 0)
|
||||
return mp_path_join(talloc_ctx, mp_get_win_local_app_dir(talloc_ctx), "cache");
|
||||
if (strcmp(type, "state") == 0)
|
||||
return mp_get_win_local_app_dir(talloc_ctx);
|
||||
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.
|
||||
|
Loading…
Reference in New Issue
Block a user