public int GetVersionFromNet(string Path) { string raw = NetReader.GetTextFromNet(Path).Split('\n').FirstOrDefault(x => x.StartsWith("VER")); if (String.IsNullOrEmpty(raw) == false) { return(ParseVersionNumber(raw)); } return(0); }
public bool Update() { string raw = NetReader.GetTextFromNet(Properties.Resources.ServerAddress + @"/patch.list"); FilesToUpdate = raw.Split('\n').Where(x => !String.IsNullOrEmpty(x)).ToList(); if (!FilesToUpdate.Any()) { return(false); } return(true); }