mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-15 23:20:36 +01:00
Core: Allow macOS arm64 client to connect (#30173)
This commit is contained in:
@@ -82,7 +82,7 @@ void RealmList::Close()
|
||||
void RealmList::LoadBuildInfo()
|
||||
{
|
||||
// 0 1 2 3 4 5 6
|
||||
if (QueryResult result = LoginDatabase.Query("SELECT majorVersion, minorVersion, bugfixVersion, hotfixVersion, build, win64AuthSeed, mac64AuthSeed FROM build_info ORDER BY build ASC"))
|
||||
if (QueryResult result = LoginDatabase.Query("SELECT majorVersion, minorVersion, bugfixVersion, hotfixVersion, build, win64AuthSeed, mac64AuthSeed, macArmAuthSeed FROM build_info ORDER BY build ASC"))
|
||||
{
|
||||
do
|
||||
{
|
||||
@@ -111,6 +111,12 @@ void RealmList::LoadBuildInfo()
|
||||
else
|
||||
build.Mac64AuthSeed = { };
|
||||
|
||||
std::string macArmAuthSeedHexStr = fields[7].GetString();
|
||||
if (macArmAuthSeedHexStr.length() == build.MacArmAuthSeed.size() * 2)
|
||||
HexStrToByteArray(macArmAuthSeedHexStr, build.MacArmAuthSeed);
|
||||
else
|
||||
build.MacArmAuthSeed = { };
|
||||
|
||||
} while (result->NextRow());
|
||||
}
|
||||
}
|
||||
|
||||
@@ -38,6 +38,7 @@ struct RealmBuildInfo
|
||||
std::array<char, 4> HotfixVersion;
|
||||
std::array<uint8, 16> Win64AuthSeed;
|
||||
std::array<uint8, 16> Mac64AuthSeed;
|
||||
std::array<uint8, 16> MacArmAuthSeed;
|
||||
};
|
||||
|
||||
namespace bgs::protocol::game_utilities::v1
|
||||
|
||||
Reference in New Issue
Block a user