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:
Hondacrx
2024-10-10 09:44:41 -04:00
parent 4540cd76e3
commit 6e2fc20fb8
2 changed files with 99 additions and 53 deletions
+2 -5
View File
@@ -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;