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

Jean-Baptiste Kempf jb at videolan.org
Fri Oct 13 00:48:28 CEST 2017


This is incorrect: config should be backed in the cloud.

Cache shouldn't.

On Tue, 26 Sep 2017, at 05:40, Steve Lhomme wrote:
> 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
> 
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> https://mailman.videolan.org/listinfo/vlc-devel


-- 
Jean-Baptiste Kempf -  President
+33 672 704 734


More information about the vlc-devel mailing list