Confirm fn_17140 (UIWindowMgr::RemoveSnapRectangle)
Batch #12977 by Yommy: 0 byte-identical, 1 confirmed by peer review. - fn_17140 UIWindowMgr::RemoveSnapRectangle: logic confirmed by peer review (already on main) Peer-reviewed-by: aDw, cremane, codeplay Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes).
This commit is contained in:
parent
476c6d357c
commit
34d71ab0ca
1 changed files with 19 additions and 0 deletions
|
|
@ -2090,6 +2090,25 @@ int UIWindowMgr::TranslateHotkey(int key, int keyData) {
|
|||
return 4;
|
||||
}
|
||||
|
||||
// INLINED
|
||||
static __forceinline std::vector<unsigned char> MakeReplayMarker(std::int16_t tag) {
|
||||
std::vector<unsigned char> chunk(6);
|
||||
*reinterpret_cast<std::int16_t*>(&chunk[0]) = tag;
|
||||
*reinterpret_cast<int*>(&chunk[2]) = 0;
|
||||
return chunk;
|
||||
}
|
||||
|
||||
// INLINED
|
||||
static __forceinline std::vector<unsigned char> MakeReplayChunk(int tag, const std::vector<unsigned char>& state) {
|
||||
std::vector<unsigned char> chunk(state.size() + 6, 0);
|
||||
*reinterpret_cast<std::int16_t*>(&chunk[0]) = static_cast<std::int16_t>(tag);
|
||||
*reinterpret_cast<int*>(&chunk[2]) = static_cast<int>(state.size());
|
||||
if (state.size()) {
|
||||
std::memcpy(&chunk[6], state.data(), state.size());
|
||||
}
|
||||
return chunk;
|
||||
}
|
||||
|
||||
// OFFSET: 0x00AA8660
|
||||
// FUNCTION: fn_17244
|
||||
std::vector<unsigned char> UIWindowMgr::SaveReplayWindows() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue