Reconstruct readable C++ and organize cohesive source subsystems
Administrative source import: native x86 compilation passed for 423 authored units. Source placement and submission states are migrated separately; this commit does not imply peer acceptance.
Previous head: 35d2a8cb36
Payload SHA256: 592f016d2730c5593bb653aa054c1e5f76a6df72c8f5a09e66f74876e2e33dee
This commit is contained in:
parent
35d2a8cb36
commit
a47d20f8be
890 changed files with 11796 additions and 16664 deletions
|
|
@ -1,26 +0,0 @@
|
|||
#include "Contents/ForbiddenWords.h"
|
||||
#include "Contents/PartyInvitation.h"
|
||||
#include "UI/UIWindow.h"
|
||||
#include "UI/WindowManagerWindows.h"
|
||||
|
||||
#include <cstdint>
|
||||
#include <cstring>
|
||||
|
||||
// ORIGINAL_SITE: 0x00D0D150 in fn_21595 (fragment)
|
||||
void ReceivePartyInvitation(const void* packet, PartyInvitationContext& context) {
|
||||
const auto* bytes = static_cast<const unsigned char*>(packet);
|
||||
char name[25];
|
||||
std::strncpy(name, reinterpret_cast<const char*>(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<std::intptr_t>(name), 0, 0);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue