From 2a723279b1ba38b7398ccdb9ef6305f2c6ea4b5d Mon Sep 17 00:00:00 2001 From: Koncord Date: Mon, 6 Mar 2017 22:52:18 +0800 Subject: [PATCH] [Client] Send ID_GAME_PREINIT packet --- apps/openmw/mwmp/Networking.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/apps/openmw/mwmp/Networking.cpp b/apps/openmw/mwmp/Networking.cpp index 8447774d8..e19d0a440 100644 --- a/apps/openmw/mwmp/Networking.cpp +++ b/apps/openmw/mwmp/Networking.cpp @@ -187,7 +187,7 @@ void Networking::preInit(std::vector &content, Files::Collections & unsigned int crc32 = Utils::crc32checksum(col.getPath(*it).string()); checksums.push_back(make_pair(*it, crc32)); - printf("idx: %d\tchecksum: %x\tfile: %s\n", idx, crc32, col.getPath(*it).c_str()); + printf("idx: %d\tchecksum: %X\tfile: %s\n", idx, crc32, col.getPath(*it).c_str()); } else throw std::runtime_error("Plugin doesn't exists."); @@ -196,8 +196,10 @@ void Networking::preInit(std::vector &content, Files::Collections & PacketPreInit packetPreInit(peer); RakNet::BitStream bs; RakNet::RakNetGUID guid; + packetPreInit.setChecksums(&checksums); packetPreInit.setGUID(guid); - packetPreInit.Packet(&bs, true, checksums); + packetPreInit.SetSendStream(&bs); + packetPreInit.Send(serverAddr); bool done = false;