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

Steve Lhomme robux4 at videolabs.io
Tue Oct 17 16:41:09 CEST 2017


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

---
replaces https://patches.videolan.org/patch/18251/
- only the cache folder needs changes
---
 src/win32/dirs.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/win32/dirs.c b/src/win32/dirs.c
index 23fef44baa..e0c4903373 100644
--- a/src/win32/dirs.c
+++ b/src/win32/dirs.c
@@ -256,8 +256,9 @@ char *config_GetUserDir (vlc_userdir_t type)
             return config_GetShellDir (CSIDL_PERSONAL);
         case VLC_CONFIG_DIR:
         case VLC_DATA_DIR:
-        case VLC_CACHE_DIR:
             return config_GetAppDir ();
+        case VLC_CACHE_DIR:
+            return config_GetShellDir (CSIDL_LOCAL_APPDATA);
 
         case VLC_DESKTOP_DIR:
         case VLC_DOWNLOAD_DIR:
-- 
2.14.2



More information about the vlc-devel mailing list