public static Dictionary <string, List <string> > ReadDependFile(string filePath) { Dictionary <string, List <string> > depenInfo = new Dictionary <string, List <string> >(); string dependTxt = ABHelper.ReadFile(filePath); if (!string.IsNullOrEmpty(dependTxt)) { // assets/resources/ui/tips:assets/resources/ui/tips/tips.bytes,assets/resources/ui/tips/tips@atlas2!a.png string[] split = dependTxt.Split('\r'); foreach (string k in split) { string[] split2 = k.Split(':'); if (!depenInfo.ContainsKey(split2[0])) { depenInfo.Add(split2[0], new List <string>()); } string[] split3 = split2[1].Split(','); foreach (string k3 in split3) { depenInfo[split2[0]].Add(k3); } } } return(depenInfo); }
private static void ReadFile() { string s = ABHelper.ReadFile(Application.dataPath + "/Editor/ABStreaming.txt"); string[] sp = s.TrimEnd().Replace("\r", "").Split('\n'); string[] sp1; foreach (var v in sp) { if (string.IsNullOrEmpty(v)) { continue; } sp1 = v.Split('='); switch (sp1[0]) { case "UseAssetsDir": UseAssetDirStr = sp1[1]; break; case "NotRemoveDir": NotRemoveDirStr = sp1[1]; break; case "NotRemoveFile": NotRemoveFileStr = sp1[1]; break; default: break; } } }
private static void ReadBuildTxt() { string s = ABHelper.ReadFile(Application.dataPath + "/Editor/BuildAppSteps.txt"); string[] sp = s.TrimEnd().Replace("\r", "").Split('\n'); string[] sp1; foreach (var v in sp) { if (string.IsNullOrEmpty(v)) { continue; } sp1 = v.Split('='); switch (sp1[0]) { case "commandBuildApp": m_commandBuildApp = bool.Parse(sp1[1]); break; case "buildApp": m_buildApp = bool.Parse(sp1[1]); break; case "xluaGen": m_xluaGen = bool.Parse(sp1[1]); break; case "isdebug": m_isDebug = bool.Parse(sp1[1]); break; case "target": m_buildTarget = (BuildTarget)Enum.Parse(typeof(BuildTarget), sp1[1]); break; default: break; } } }
public static Dictionary <string, string> ReadMd5File(string filePath) { Dictionary <string, string> md5Info = new Dictionary <string, string>(); string md5Txt = ABHelper.ReadFile(filePath); if (!string.IsNullOrEmpty(md5Txt)) { // assets/resources/ui/tips/tips.bytes:bd51b54f940b530425662e4529ea5673 string[] split = md5Txt.Split('\r'); foreach (string k in split) { string[] split2 = k.Split(':'); md5Info.Add(split2[0], split2[1]); } } return(md5Info); }
public static List <string> ReadNativeFileByPath(string filePath) { return(ReadNativeFileByString(ABHelper.ReadFile(filePath))); }
public static Dictionary <string, List <string> > ReadMd5FileByPath(string filePath) { return(ReadMd5FileByString(ABHelper.ReadFile(filePath))); }