#include "Contents/ForbiddenWords.h" #include "Contents/PartyInvitation.h" #include "UI/UIWindow.h" #include "UI/WindowManagerWindows.h" #include #include // ORIGINAL_SITE: 0x00D0D150 in fn_21595 (fragment) void ReceivePartyInvitation(const void* packet, PartyInvitationContext& context) { const auto* bytes = static_cast(packet); char name[25]; std::strncpy(name, reinterpret_cast(bytes + 6), 24); name[24] = '\0'; if (context.words.Contains(name)) { std::string unused; context.words.Mask(name, &unused); } context.pendingName.assign(name, std::strlen(name)); UIWindow* window = context.windows.EnsureWindow(35); std::uint32_t identity; std::memcpy(&identity, bytes + 2, sizeof(identity)); window->SendMsg(nullptr, 56, identity, reinterpret_cast(name), 0, 0); }