Core: Allow macOS arm64 client to connect (#30173)

This commit is contained in:
Motive
2024-08-28 13:59:19 -04:00
committed by GitHub
parent 1f0a62bde5
commit 6b2d12206c
6 changed files with 305 additions and 288 deletions

View File

@@ -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());
}
}

View File

@@ -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