aboutsummaryrefslogtreecommitdiff
path: root/src/server/shared
diff options
context:
space:
mode:
authorMotive <42782517+motivewc@users.noreply.github.com>2024-08-28 13:59:19 -0400
committerGitHub <noreply@github.com>2024-08-28 19:59:19 +0200
commit6b2d12206c56222ddd7877a786d11701396fc63f (patch)
tree710c46fb031ae934c93b8b184947d8f4d0068d6b /src/server/shared
parent1f0a62bde5b927392a58e95a87d4d8bd93438d7e (diff)
Core: Allow macOS arm64 client to connect (#30173)
Diffstat (limited to 'src/server/shared')
-rw-r--r--src/server/shared/Realm/RealmList.cpp8
-rw-r--r--src/server/shared/Realm/RealmList.h1
2 files changed, 8 insertions, 1 deletions
diff --git a/src/server/shared/Realm/RealmList.cpp b/src/server/shared/Realm/RealmList.cpp
index 2568a859f88..fd1e6e3a165 100644
--- a/src/server/shared/Realm/RealmList.cpp
+++ b/src/server/shared/Realm/RealmList.cpp
@@ -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());
}
}
diff --git a/src/server/shared/Realm/RealmList.h b/src/server/shared/Realm/RealmList.h
index 3cbbb97c316..b61ad502877 100644
--- a/src/server/shared/Realm/RealmList.h
+++ b/src/server/shared/Realm/RealmList.h
@@ -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