public static void WriteStreamingStrVer(EResourceVerType VerType, string Ver) { string path = Utility.LocalStoragePath + "/Ver/" + VerType.ToString(); WriteFileVer(path, Ver); Dirty[(int)VerType] = true; CachedVer[(int)VerType] = Ver; }
public static int ReadResourceVer(EResourceVerType VerType) { string Ver = ReadResourceStrVer(VerType); int iVer = 0; try { iVer = Convert.ToInt32(Ver); } catch { } return(iVer); }
public static string ReadStreamingStrVer(EResourceVerType VerType) { if (!Dirty[(int)VerType]) { return(CachedVer[(int)VerType]); } string path = Utility.LocalStoragePath + "/Ver/" + VerType.ToString(); string Ver = ReadFileVer(path); Dirty[(int)VerType] = false; CachedVer[(int)VerType] = Ver; return(Ver); }
public static string ReadResourceStrVer(EResourceVerType VerType) { TextAsset asset = Resources.Load("LocalConfig/" + VerType.ToString()) as TextAsset; string Ver = "-1"; if (asset != null) { Ver = asset.text; } #if !DISTRIBUTION_VERSION //ssLogger.Log("ReadResourceStrVer:" + VerType + ":" + Ver); #endif Resources.UnloadAsset(asset); return(Ver); }
public static void WriteResourceStrVer(EResourceVerType VerType, string Ver) { string path = Application.dataPath + "/Resources/LocalConfig/" + VerType.ToString() + ".txt"; WriteFileVer(path, Ver); }
public static void WriteResourceVer(EResourceVerType VerType, int Ver) { WriteResourceStrVer(VerType, Ver.ToString()); }
public static void RemoveStreamingVer(EResourceVerType VerType) { string path = Utility.LocalStoragePath + "/Ver/" + VerType.ToString(); RemoveFileVer(path); }