Files
wowdecomp/_Triage/EmergencyMem.cpp
T
SatyandClaude Opus 5.5 89c3a2ac98 ICursorDraw, D3D buffers: first D3D9 window
CGxDevice/CGxDeviceD3d::ICursorDraw, GxUpdateAlphaRef, CGxShader::Valid,
D3D BufLock/BufUnlock/BufData with IBufLock/IBufUnlock and CreatePoolAPI,
EmergencyMem::Lock/Unlock. GxTest defaults to its exe folder for data and
now runs the clear/present loop on both architectures.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-09-25 03:40:35 +02:00

25 lines
450 B
C++

#include "EmergencyMem.h"
// INLINED
EmergencyMem::EmergencyMem() : m_lock(false) {
}
// VERIFY: 81a07d3f auto
// OFFSET: 0x00682C40
void EmergencyMem::Unlock() {
this->m_lock = false;
}
// VERIFY: 047bfe60 manual
// OFFSET: 0x00685E90
void* EmergencyMem::Lock(uint32_t size) {
if (this->m_data.Count() < size) {
this->m_data.SetCount(size);
}
void* data = this->m_data.Ptr();
this->m_lock = true;
return data;
}