summaryrefslogtreecommitdiffstats
path: root/osdep/path-win.c
diff options
context:
space:
mode:
authorKacper Michajłow <kasper93@gmail.com>2023-07-26 21:24:18 +0200
committerDudemanguy <random342@airmail.cc>2023-07-29 14:27:59 +0000
commitaa05c0687391385600b0bc56d74eef83839fcd04 (patch)
tree768b4276ab54c5903e2737ffdea3bf89b0e6599e /osdep/path-win.c
parent089a8480a2076edfae3a4ef514201968b0387fc8 (diff)
downloadmpv-aa05c0687391385600b0bc56d74eef83839fcd04.tar.bz2
mpv-aa05c0687391385600b0bc56d74eef83839fcd04.tar.xz
path-win: add subdirectory for cache
To not polute %LOCALAPPDATA%/mpv as it may be used for other things too.
Diffstat (limited to 'osdep/path-win.c')
-rw-r--r--osdep/path-win.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/osdep/path-win.c b/osdep/path-win.c
index 18f03561b7..013b093347 100644
--- a/osdep/path-win.c
+++ b/osdep/path-win.c
@@ -98,7 +98,7 @@ const char *mp_get_platform_path_win(void *talloc_ctx, const char *type)
if (strcmp(type, "home") == 0)
return mp_get_win_app_dir(talloc_ctx);
if (strcmp(type, "cache") == 0)
- return mp_get_win_local_app_dir(talloc_ctx);
+ return mp_path_join(talloc_ctx, mp_get_win_local_app_dir(talloc_ctx), "cache");
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.