diff options
| author | Shauren <shauren.trinity@gmail.com> | 2014-05-02 13:30:41 +0200 |
|---|---|---|
| committer | Shauren <shauren.trinity@gmail.com> | 2014-05-02 13:30:41 +0200 |
| commit | 2654fd67f32ef8b10cb0f9fcdc5033de62ca9a78 (patch) | |
| tree | 49613d2dfbac81be6c8d894e5b800a06d2007261 /src/server/authserver/Server/BattlenetPackets.cpp | |
| parent | 6955d7c9ad0e55480aa97d9cafd878c6bc3dc426 (diff) | |
Core/Battle.net: Refactored FCC writing
Diffstat (limited to 'src/server/authserver/Server/BattlenetPackets.cpp')
| -rw-r--r-- | src/server/authserver/Server/BattlenetPackets.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/server/authserver/Server/BattlenetPackets.cpp b/src/server/authserver/Server/BattlenetPackets.cpp index 68a602d8598..bcb4f4e4898 100644 --- a/src/server/authserver/Server/BattlenetPackets.cpp +++ b/src/server/authserver/Server/BattlenetPackets.cpp @@ -67,7 +67,7 @@ std::string Battlenet::AuthChallenge::ToString() const std::ostringstream stream; stream << "Battlenet::AuthChallenge Program: " << Program << ", Platform: " << Platform << ", Locale: " << Locale; for (Component const& component : Components) - stream << std::endl << "Battlenet::AuthChallenge::Component Program: " << component.Program << ", Platform: " << component.Platform << ", Build: " << component.Build; + stream << std::endl << "Battlenet::Component Program: " << component.Program << ", Platform: " << component.Platform << ", Build: " << component.Build; if (!Login.empty()) stream << std::endl << "Battlenet::AuthChallenge Login: " << Login; @@ -81,7 +81,7 @@ void Battlenet::ProofRequest::Write() for (ModuleInfo const* info : Modules) { _stream.WriteBytes(info->Type.c_str(), 4); - _stream.WriteFourCC(info->Region.c_str()); + _stream.WriteFourCC(info->Region); _stream.WriteBytes(info->ModuleId, 32); _stream.Write(info->DataSize, 10); _stream.WriteBytes(info->Data, info->DataSize); @@ -93,7 +93,7 @@ std::string Battlenet::ProofRequest::ToString() const std::ostringstream stream; stream << "Battlenet::ProofRequest modules " << Modules.size(); for (ModuleInfo const* module : Modules) - stream << std::endl << "Locale " << module->Region << "ModuleId " << ByteArrayToHexStr(module->ModuleId, 32) << "BlobSize " << module->DataSize; + stream << std::endl << "Battlenet::ModuleInfo Locale " << module->Region.c_str() << ", ModuleId " << ByteArrayToHexStr(module->ModuleId, 32) << ", BlobSize " << module->DataSize; return stream.str(); } @@ -138,7 +138,7 @@ void Battlenet::AuthComplete::Write() { ModuleInfo& info = Modules[i]; _stream.WriteBytes(info.Type.c_str(), 4); - _stream.WriteFourCC(info.Region.c_str()); + _stream.WriteFourCC(info.Region); _stream.WriteBytes(info.ModuleId, 32); _stream.Write(info.DataSize, 10); _stream.WriteBytes(info.Data, info.DataSize); @@ -165,7 +165,7 @@ void Battlenet::AuthComplete::Write() { ModuleInfo& info = Modules[0]; _stream.WriteBytes(info.Type.c_str(), 4); - _stream.WriteFourCC(info.Region.c_str()); + _stream.WriteFourCC(info.Region); _stream.WriteBytes(info.ModuleId, 32); _stream.Write(info.DataSize, 10); _stream.WriteBytes(info.Data, info.DataSize); |
