diff --git a/src/BizHawk.Client.EmuHawk/UpdateChecker.cs b/src/BizHawk.Client.EmuHawk/UpdateChecker.cs index a4c3fa0f9e..81d98d02ef 100644 --- a/src/BizHawk.Client.EmuHawk/UpdateChecker.cs +++ b/src/BizHawk.Client.EmuHawk/UpdateChecker.cs @@ -46,7 +46,7 @@ namespace BizHawk.Client.EmuHawk return; } - ThreadPool.QueueUserWorkItem((s) => CheckInternal()); + ThreadPool.QueueUserWorkItem(s => CheckInternal()); } public static bool IsNewVersionAvailable => @@ -108,9 +108,14 @@ namespace BizHawk.Client.EmuHawk ulong version = 0; for (int i = 0; i < split.Length; i++) { - if (!UInt16.TryParse(split[i], out var versionPart)) return 0; + if (!ushort.TryParse(split[i], out var versionPart)) + { + return 0; + } + version |= (ulong)versionPart << (48 - (i * 16)); } + return version; }