refactor: use std::endian directly, enum class EDefaultSkins, rename reserved-prefix helpers

This commit is contained in:
MatthewBeshay
2026-04-03 19:05:19 +11:00
parent 3f33bf4817
commit 5105f89648
93 changed files with 407 additions and 411 deletions
+1 -1
View File
@@ -362,7 +362,7 @@ bool Connection::readTick() {
void handleException(Exception e)
{
e.printStackTrace();
close("disconnect.genericReason", "Internal exception: " + e.toString());
close("disconnect.genericReason", "Internal exception: " + e.toWString());
}*/
void Connection::close(DisconnectPacket::eDisconnectReason reason) {
+2 -2
View File
@@ -519,13 +519,13 @@ std::shared_ptr<Packet> Packet::readPacket(
__debugbreak();
assert(false);
// throw new IOException(wstring(L"Bad packet id ") +
// _toString<int>(id));
// toWString<int>(id));
}
packet = getPacket(id);
if (packet == nullptr)
assert(false); // throw new IOException(wstring(L"Bad packet id ") +
// _toString<int>(id));
// toWString<int>(id));
// app.DebugPrintf("%s reading packet %d\n", isServer ? "Server" : "Client",
// packet->getId());