[vlc-commits] win32:dirs: the cache folder should not be backed up in the cloud on winstore

Steve Lhomme git at videolan.org
Tue Oct 17 18:39:34 CEST 2017


vlc | branch: master | Steve Lhomme <robUx4 at videolabs.io> | Tue Oct 17 16:41:09 2017 +0200| [11aa88f3f845ff4f7993670f2a5315216c0e2fb9] | committer: Jean-Baptiste Kempf

win32:dirs: the cache folder should not be backed up in the cloud on winstore

See LocalCacheFolder
https://docs.microsoft.com/en-us/uwp/api/windows.storage.applicationdata#Windows_Storage_ApplicationData_LocalCacheFolder

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=11aa88f3f845ff4f7993670f2a5315216c0e2fb9
---

 src/win32/dirs.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/win32/dirs.c b/src/win32/dirs.c
index 23fef44baa..cf68bf16cc 100644
--- a/src/win32/dirs.c
+++ b/src/win32/dirs.c
@@ -256,8 +256,13 @@ char *config_GetUserDir (vlc_userdir_t type)
             return config_GetShellDir (CSIDL_PERSONAL);
         case VLC_CONFIG_DIR:
         case VLC_DATA_DIR:
+            return config_GetAppDir ();
         case VLC_CACHE_DIR:
+#if !VLC_WINSTORE_APP
             return config_GetAppDir ();
+#else
+            return config_GetShellDir (CSIDL_LOCAL_APPDATA);
+#endif
 
         case VLC_DESKTOP_DIR:
         case VLC_DOWNLOAD_DIR:



More information about the vlc-commits mailing list