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,13 +1,10 @@
|
|||
#include "Client/ReplayPacketRecorder.h"
|
||||
#include "Network/PacketLengths.h"
|
||||
#include "Network/Packets/PacketLengths.h"
|
||||
|
||||
#include <bit>
|
||||
#include <cstring>
|
||||
#include <vector>
|
||||
#include <windows.h>
|
||||
// clang-format off
|
||||
#include <mmsystem.h>
|
||||
// clang-format on
|
||||
#include <timeapi.h>
|
||||
|
||||
// OFFSET: 0x00B86880
|
||||
// FUNCTION: fn_19332
|
||||
|
|
@ -64,10 +61,11 @@ bool ReplayPacketRecorder::Record(std::uint16_t bytes, const void* packet, int e
|
|||
std::memcpy(record.data() + 10 + index * 4, &word, sizeof(word));
|
||||
}
|
||||
|
||||
std::fseek(this->file, std::bit_cast<std::int32_t>(this->fileOffset), SEEK_SET);
|
||||
std::fseek(this->file, static_cast<long>(this->fileOffset), SEEK_SET);
|
||||
std::fwrite(record.data(), record.size(), 1, this->file);
|
||||
this->fileOffset += static_cast<std::uint32_t>(record.size());
|
||||
++this->records;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
@ -88,12 +86,6 @@ void WindowResponseRecorder::Record(int windowId, int response, std::intptr_t b,
|
|||
};
|
||||
#pragma pack(pop)
|
||||
static_assert(sizeof(Response) == 26);
|
||||
const Response packet{
|
||||
0x038408AEu,
|
||||
26,
|
||||
windowId,
|
||||
response,
|
||||
{static_cast<std::uint32_t>(b), static_cast<std::uint32_t>(c), static_cast<std::uint32_t>(d)}
|
||||
};
|
||||
const Response packet{0x038408AEu, 26, windowId, response, {static_cast<std::uint32_t>(b), static_cast<std::uint32_t>(c), static_cast<std::uint32_t>(d)}};
|
||||
this->packets.Record(sizeof(packet), &packet, 42, 0);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue