diff options
Diffstat (limited to 'packet_distribution.cpp')
| -rw-r--r-- | packet_distribution.cpp | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/packet_distribution.cpp b/packet_distribution.cpp index 4e02fb4..114f01b 100644 --- a/packet_distribution.cpp +++ b/packet_distribution.cpp @@ -3,6 +3,7 @@ #include "lobby.h" #include "networkmanager.h" #include "encryption_functions.h" +#include "win32_functions.h" #include <QDebug> @@ -85,9 +86,14 @@ void AOApplication::server_packet_received(AOPacket *p_packet) //you may ask where 322 comes from. that would be a good question. s_decryptor = fanta_decrypt(f_contents.at(0), 322).toUInt(); - //T0D0 add an actual HDID here - AOPacket *hi_packet = new AOPacket("HI#ao2testinginprogressdontmindme#%"); + QString f_hdid; +#ifdef Q_OS_WIN32 + f_hdid = get_hdid(); +#else + f_hdid = "ao2testinginprogress"; +#endif + AOPacket *hi_packet = new AOPacket("HI#" + f_hdid + "#%"); send_server_packet(hi_packet); delete hi_packet; @@ -97,6 +103,7 @@ void AOApplication::server_packet_received(AOPacket *p_packet) if (f_contents.size() < 1) return; + //T0D0: save server version here, somehow } else if (header == "CT") { |
