From cbfb3919fcadf8559172c2e57377e3313dd625dd Mon Sep 17 00:00:00 2001 From: RaidMax Date: Sat, 15 Jun 2019 08:52:59 -0500 Subject: [PATCH] fix GUID parsing on T6 --- SharedLibraryCore/Utilities.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/SharedLibraryCore/Utilities.cs b/SharedLibraryCore/Utilities.cs index 39c43dd5e..2e54b2a6e 100644 --- a/SharedLibraryCore/Utilities.cs +++ b/SharedLibraryCore/Utilities.cs @@ -282,7 +282,10 @@ namespace SharedLibraryCore // this is a special case for Plutonium T6 and CoD4x if (long.TryParse(str, NumberStyles.Integer, CultureInfo.InvariantCulture, out long id)) { - + if (id < 0) + { + id = (uint)id; + } } else if (long.TryParse(str, NumberStyles.HexNumber, CultureInfo.InvariantCulture, out id)) @@ -296,7 +299,7 @@ namespace SharedLibraryCore if (id == 0) { - throw new FormatException($"Could not parse client GUID - {str}"); + throw new FormatException($"Could not parse client GUID - {str}"); } return id;