mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-23 07:40:14 +00:00
Fix Windows build errors in warden and CharCreateResult
warden_emulator.cpp: guard unicorn include + entire implementation with HAVE_UNICORN; provide stub implementations for platforms without Unicorn (Windows ARM64 which has no unicorn MSYS2 package) warden_module.cpp: include <windows.h> for VirtualAlloc/HMODULE/etc on Windows; always include warden_emulator.hpp so unique_ptr destructor compiles regardless of HAVE_UNICORN world_packets.hpp + game_handler.cpp: rename CharCreateResult::ERROR to CharCreateResult::CHAR_ERROR to avoid wingdi.h #define ERROR 0 collision
This commit is contained in:
parent
fbb0b76362
commit
c0c0210b66
4 changed files with 40 additions and 6 deletions
|
|
@ -2065,7 +2065,7 @@ void GameHandler::handleCharCreateResponse(network::Packet& packet) {
|
|||
} else {
|
||||
std::string msg;
|
||||
switch (data.result) {
|
||||
case CharCreateResult::ERROR: msg = "Server error"; break;
|
||||
case CharCreateResult::CHAR_ERROR: msg = "Server error"; break;
|
||||
case CharCreateResult::FAILED: msg = "Creation failed"; break;
|
||||
case CharCreateResult::NAME_IN_USE: msg = "Name already in use"; break;
|
||||
case CharCreateResult::DISABLED: msg = "Character creation disabled"; break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue