Core/Client Builds: Refactor build_info structure to support any client variants
Port From (https://github.com/TrinityCore/TrinityCore/commit/e94558d07892a98d78bec3633e0c82e1394b9d66)
This commit is contained in:
@@ -439,13 +439,10 @@ namespace System
|
||||
return hash;
|
||||
}
|
||||
|
||||
public static int fourcc(this string str)
|
||||
public static int ToFourCC(this string text)
|
||||
{
|
||||
//if (length > sizeof(uint))
|
||||
// throw "Text can only be max 4 characters long";
|
||||
|
||||
int intValue = 0;
|
||||
foreach (char c in str.ToCharArray())
|
||||
foreach (char c in text)
|
||||
{
|
||||
intValue <<= 8;
|
||||
intValue |= c;
|
||||
|
||||
Reference in New Issue
Block a user