[vlc-devel] [PATCH] win32:dirs: the config and cache should not be backed up in the cloud on winstore
Steve Lhomme
robux4 at videolabs.io
Tue Sep 26 14:40:06 CEST 2017
See LocalCacheFolder
https://docs.microsoft.com/en-us/uwp/api/windows.storage.applicationdata#Windows_Storage_ApplicationData_LocalCacheFolder
---
src/win32/dirs.c | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/src/win32/dirs.c b/src/win32/dirs.c
index 23fef44baa..c4738d02e1 100644
--- a/src/win32/dirs.c
+++ b/src/win32/dirs.c
@@ -254,10 +254,15 @@ char *config_GetUserDir (vlc_userdir_t type)
{
case VLC_HOME_DIR:
return config_GetShellDir (CSIDL_PERSONAL);
- case VLC_CONFIG_DIR:
case VLC_DATA_DIR:
+ return config_GetAppDir ();
+ case VLC_CONFIG_DIR:
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:
--
2.12.1
More information about the vlc-devel
mailing list