We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e518b3a commit 4d39586Copy full SHA for 4d39586
WowPacketParser/Misc/ClientLocale.cs
@@ -25,6 +25,9 @@ public static void SetLocale(string locale)
25
PacketLocaleString = "enUS";
26
else
27
PacketLocaleString = locale;
28
+
29
+ if (!Enum.TryParse<LocaleConstant>(PacketLocaleString, out var _))
30
+ throw new InvalidDataException($"Invalid locale '{PacketLocaleString}'.");
31
}
32
33
0 commit comments