GetDefaultCachePath() private méthode

private GetDefaultCachePath ( ) : string
Résultat string
Exemple #1
0
        public static string GetCacheLocation()
        {
            var cachePath        = EditorPrefs.GetString(PathKey);
            var enableCustomPath = EditorPrefs.GetBool(CustomPathKey);
            var result           = cachePath;

            if (!enableCustomPath || string.IsNullOrEmpty(cachePath))
            {
                result = Paths.Combine(OSUtil.GetDefaultCachePath(), "CacheServer");
            }
            return(result);
        }
        public static string GetCacheLocation()
        {
            string str   = EditorPrefs.GetString("LocalCacheServerPath");
            bool   @bool = EditorPrefs.GetBool("LocalCacheServerCustomPath");
            string str2  = str;

            if (@bool && !string.IsNullOrEmpty(str))
            {
                return(str2);
            }
            string[] components = new string[] { OSUtil.GetDefaultCachePath(), "CacheServer" };
            return(Paths.Combine(components));
        }
Exemple #3
0
        public static string GetCacheLocation()
        {
            string @string = EditorPrefs.GetString("LocalCacheServerPath");
            bool   @bool   = EditorPrefs.GetBool("LocalCacheServerCustomPath");
            string result  = @string;

            if (!@bool || string.IsNullOrEmpty(@string))
            {
                result = Paths.Combine(new string[]
                {
                    OSUtil.GetDefaultCachePath(),
                    "CacheServer"
                });
            }
            return(result);
        }