diff options
| author | Motive <42782517+motivewc@users.noreply.github.com> | 2024-08-28 19:59:19 +0200 |
|---|---|---|
| committer | Ovahlord <dreadkiller@gmx.de> | 2024-08-29 04:50:49 +0200 |
| commit | 519abbd39887fe121a9e66b1f5e046c5a54fc5c8 (patch) | |
| tree | 87a589813ce2febad9207a94f77bdee706b83d83 /src/server/shared | |
| parent | f84033df2b2d001a67dcfe5a8d017d32fff9e629 (diff) | |
Core: Allow macOS arm64 client to connect (#30173)
(cherry picked from commit 6b2d12206c56222ddd7877a786d11701396fc63f)
# Conflicts:
# sql/base/auth_database.sql
# sql/updates/auth/cata_classic/2024_08_28_01_auth.sql
Diffstat (limited to 'src/server/shared')
| -rw-r--r-- | src/server/shared/Realm/RealmList.cpp | 8 | ||||
| -rw-r--r-- | src/server/shared/Realm/RealmList.h | 1 |
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 |
