refactor: nuke all widestrings and widechars everywhere

This commit is contained in:
Tropical
2026-04-07 23:20:09 -05:00
parent f1f1d116b3
commit 2912e9ae2e
1323 changed files with 23207 additions and 23399 deletions

View File

@@ -10,19 +10,19 @@
#include "java/InputOutputStream/DataOutputStream.h"
// Mojang-defined custom packets
const std::wstring CustomPayloadPacket::CUSTOM_BOOK_PACKET = L"MC|BEdit";
const std::wstring CustomPayloadPacket::CUSTOM_BOOK_SIGN_PACKET = L"MC|BSign";
const std::wstring CustomPayloadPacket::TEXTURE_PACK_PACKET = L"MC|TPack";
const std::wstring CustomPayloadPacket::TRADER_LIST_PACKET = L"MC|TrList";
const std::wstring CustomPayloadPacket::TRADER_SELECTION_PACKET = L"MC|TrSel";
const std::wstring CustomPayloadPacket::SET_ADVENTURE_COMMAND_PACKET =
L"MC|AdvCdm";
const std::wstring CustomPayloadPacket::SET_BEACON_PACKET = L"MC|Beacon";
const std::wstring CustomPayloadPacket::SET_ITEM_NAME_PACKET = L"MC|ItemName";
const std::string CustomPayloadPacket::CUSTOM_BOOK_PACKET = "MC|BEdit";
const std::string CustomPayloadPacket::CUSTOM_BOOK_SIGN_PACKET = "MC|BSign";
const std::string CustomPayloadPacket::TEXTURE_PACK_PACKET = "MC|TPack";
const std::string CustomPayloadPacket::TRADER_LIST_PACKET = "MC|TrList";
const std::string CustomPayloadPacket::TRADER_SELECTION_PACKET = "MC|TrSel";
const std::string CustomPayloadPacket::SET_ADVENTURE_COMMAND_PACKET =
"MC|AdvCdm";
const std::string CustomPayloadPacket::SET_BEACON_PACKET = "MC|Beacon";
const std::string CustomPayloadPacket::SET_ITEM_NAME_PACKET = "MC|ItemName";
CustomPayloadPacket::CustomPayloadPacket() {}
CustomPayloadPacket::CustomPayloadPacket(const std::wstring& identifier,
CustomPayloadPacket::CustomPayloadPacket(const std::string& identifier,
std::vector<uint8_t> data) {
this->identifier = identifier;
this->data = data;