diff options
author | Kacper Michajłow <kasper93@gmail.com> | 2023-07-26 21:25:52 +0200 |
---|---|---|
committer | Dudemanguy <random342@airmail.cc> | 2023-07-29 14:27:59 +0000 |
commit | 5fc305fa173ce47e904a5c420f26ff2badf25a6c (patch) | |
tree | 409041fb809e40fbb191d209a6c881fbe3a71f5a /osdep/path-win.c | |
parent | aa05c0687391385600b0bc56d74eef83839fcd04 (diff) | |
download | mpv-5fc305fa173ce47e904a5c420f26ff2badf25a6c.tar.bz2 mpv-5fc305fa173ce47e904a5c420f26ff2badf25a6c.tar.xz |
path-win: move state directory to %LOCALAPPDATA%
%LOCALAPPDATA% is where the local application state belongs.
Diffstat (limited to 'osdep/path-win.c')
-rw-r--r-- | osdep/path-win.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/osdep/path-win.c b/osdep/path-win.c index 013b093347..844a502020 100644 --- a/osdep/path-win.c +++ b/osdep/path-win.c @@ -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. |