public void Callback(SteamUGCRequestUGCDetailsResult_t param, bool bIOFailure) { GameEvents.Twice_Second.UnregWithEvent(SteamUGCRequest); string Description = param.m_details.m_rgchDescription; if (!string.IsNullOrEmpty(Description)) { using (StringReader Reader = new StringReader(Description)) { string InputLine; System.Version LatestVersion = null; while ((InputLine = Reader.ReadLine()) != null) { if (InputLine.StartsWith("Mod latest version ")) { LatestVersion = System.Version.Parse(InputLine.Remove(0, 18)); break; } } if (LatestVersion != null && ModVersion.CompareTo(LatestVersion) == -1) { ModProblemOverwrite(ModName, MyModDirPath + "UpdateText", "New version released! v" + LatestVersion, false); } } } }