diff options
author | Shauren <shauren.trinity@gmail.com> | 2015-10-06 00:30:47 +0200 |
---|---|---|
committer | Shauren <shauren.trinity@gmail.com> | 2015-10-06 00:30:47 +0200 |
commit | 63def8aa3291d0a6e5f83b289ad12c4c8a3cebd9 (patch) | |
tree | cfb5fe68515b5421c0719430f3689733bde20429 /src/server/bnetserver/Authentication/AuthCodes.cpp | |
parent | 2c828a47a5aa03c850f0a0fdf7c2100771f69ef8 (diff) |
Core/Battle.net:
* Changed packet structures to mirror client names
* Simplified ToString Building
* Removed deprecated structures
World: Cleaned up duplicate realm info 'realm' and 'realmHandle' variables (realmHandle was removed, that data is fully contained in realm)
Diffstat (limited to 'src/server/bnetserver/Authentication/AuthCodes.cpp')
-rw-r--r-- | src/server/bnetserver/Authentication/AuthCodes.cpp | 42 |
1 files changed, 22 insertions, 20 deletions
diff --git a/src/server/bnetserver/Authentication/AuthCodes.cpp b/src/server/bnetserver/Authentication/AuthCodes.cpp index 97723816ce3..a717263786e 100644 --- a/src/server/bnetserver/Authentication/AuthCodes.cpp +++ b/src/server/bnetserver/Authentication/AuthCodes.cpp @@ -16,34 +16,36 @@ */ #include "AuthCodes.h" -#include <cstddef> +#include "Define.h" +#include <vector> namespace AuthHelper { - static RealmBuildInfo const PostBcAcceptedClientBuilds[] = + // List of client builds for verbose version info in realmlist packet + static std::vector<RealmBuildInfo> const ClientBuilds = { - {15595, 4, 3, 4, ' '}, - {14545, 4, 2, 2, ' '}, - {13623, 4, 0, 6, 'a'}, - {13930, 3, 3, 5, 'a'}, // 3.3.5a China Mainland build - {12340, 3, 3, 5, 'a'}, - {11723, 3, 3, 3, 'a'}, - {11403, 3, 3, 2, ' '}, - {11159, 3, 3, 0, 'a'}, - {10505, 3, 2, 2, 'a'}, - {9947, 3, 1, 3, ' '}, - {8606, 2, 4, 3, ' '}, - {6141, 1, 12, 3, ' '}, - {6005, 1, 12, 2, ' '}, - {5875, 1, 12, 1, ' '}, - {0, 0, 0, 0, ' '} // terminator + { 20490, 6, 2, 2, 'a' }, + { 15595, 4, 3, 4, ' ' }, + { 14545, 4, 2, 2, ' ' }, + { 13623, 4, 0, 6, 'a' }, + { 13930, 3, 3, 5, 'a' }, // 3.3.5a China Mainland build + { 12340, 3, 3, 5, 'a' }, + { 11723, 3, 3, 3, 'a' }, + { 11403, 3, 3, 2, ' ' }, + { 11159, 3, 3, 0, 'a' }, + { 10505, 3, 2, 2, 'a' }, + { 9947, 3, 1, 3, ' ' }, + { 8606, 2, 4, 3, ' ' }, + { 6141, 1, 12, 3, ' ' }, + { 6005, 1, 12, 2, ' ' }, + { 5875, 1, 12, 1, ' ' }, }; RealmBuildInfo const* GetBuildInfo(int build) { - for (int i = 0; PostBcAcceptedClientBuilds[i].Build; ++i) - if (PostBcAcceptedClientBuilds[i].Build == build) - return &PostBcAcceptedClientBuilds[i]; + for (int32 i = 0; ClientBuilds.size(); ++i) + if (ClientBuilds[i].Build == build) + return &ClientBuilds[i]; return nullptr; } |