Ports verified against 12340 that take the x64 client from character login to a playable world: - Camera: SetView/ResetView, motion, free-look facing, tracking, bobs, liquid bump, world collision; camera Lua scripts - Input: world frame key/mouse layers, default action, mouselook, turn/pitch player, TurnOrAction/CameraOrSelectOrMove scripts - Movement: legal facing range, turn/pitch/raw facing events, transport status, move spline copy, unit update info, smooth facing, anim end - Units: component and extended display init, model fade/scale, entity sort table, RenderEntitys, split-body culling - Interiors: WMO group bounds, BSP segment link query, face linking, interior lighting - Collision: CMap::QueryFacets closure with frustum queries and NDCClip - UI: game UI mouse filters, client control state, faction standing packet, many *_Scripts.cpp Lua tables; name generator dictionary fix Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
36 lines
1018 B
C++
36 lines
1018 B
C++
#include "CWOWClientStatus.h"
|
|
#include "Engine/Source/Services/SysMessage.h"
|
|
|
|
// INLINED
|
|
CWOWClientStatus::CWOWClientStatus(const char* logFileName) {
|
|
this->m_log = nullptr;
|
|
|
|
if (!SLogCreate(logFileName, 0, &this->m_log)) {
|
|
SysMsgPrintf(STATUS_WARNING, "Cannot create WOWClient log file \"%s\"!", logFileName);
|
|
}
|
|
}
|
|
|
|
// VERIFY: 92e4f487 manual
|
|
// OFFSET: 0x004DA580
|
|
CWOWClientStatus::CWOWClientStatus(const char* logFileName, int32_t append) {
|
|
this->m_log = nullptr;
|
|
|
|
if (logFileName && *logFileName && !SLogCreate(logFileName, append ? 4 : 0, &this->m_log)) {
|
|
SysMsgPrintf(STATUS_WARNING, "Cannot create WOWClient log file \"%s\"!", logFileName);
|
|
}
|
|
}
|
|
|
|
// VERIFY: 8eb968ae manual
|
|
// OFFSET: 0x004DA2D0
|
|
CWOWClientStatus::~CWOWClientStatus() {
|
|
if (!this->m_log) {
|
|
return;
|
|
}
|
|
|
|
for (STATUSENTRY* entry = this->m_statusList.Head(); entry; entry = this->m_statusList.Next(entry)) {
|
|
SLogWrite(this->m_log, entry->m_text);
|
|
}
|
|
|
|
SLogClose(this->m_log);
|
|
}
|