GetDefaultCachePath() private method

private GetDefaultCachePath ( ) : string
return string
コード例 #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);
        }
コード例 #2
0
        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));
        }
コード例 #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);
        }