Files
SatyandClaude Opus 5.5 d8745e6b09 D3D pass 3: device lifecycle, scene, present, draw
Device creation (DeviceCreate x2, ICreateD3d, DeviceSetFormat,
ICreateWindow, ISetPresentParms, ISetCaps, ICreateD3dDevice), frame
(ISceneBegin, ScenePresent, SceneClear, Draw, IStateSetD3DDefaults),
teardown and resource release, DeviceWM, texture recreation.
CGxDevice::WaitForFPSCap and AdjustWindowRectToWorkArea (Win32/Win64);
Os time snapshot, OsGetAsyncTimeMs, OsSleep, last-error string.
Vendors NVIDIA NVAPI (MIT) into ThirdParty/nvapi, linked into Gx on
Windows.

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

21 lines
546 B
C++

#if defined(WOWDECOMP_ARCH_32)
#include <windows.h>
#include "Engine/Source/Os/Error.h"
// VERIFY: dfb26c0a auto
// OFFSET: 0x008714E0
char* OsGetLastErrorStr() {
char* buffer;
FormatMessageA(FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_FROM_SYSTEM | FORMAT_MESSAGE_IGNORE_INSERTS, nullptr, GetLastError(), MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT), reinterpret_cast<char*>(&buffer), 0, nullptr);
return buffer;
}
// VERIFY: 0424db6f auto
// OFFSET: 0x00871510
void OsFreeLastErrorStr(char* str) {
LocalFree(str);
}
#endif