OsTimeManager ctor/Calibrate, create/destroy, OsTimeStartup/Shutdown, async clock getters, OsGetNumberOfProcessors. GxTest creates the D3D device and runs a clear/present loop; stops at the unported texture path. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
21 lines
359 B
C++
21 lines
359 B
C++
#if defined(WOWDECOMP_ARCH_32)
|
|
|
|
#include <cstdint>
|
|
#include <windows.h>
|
|
#include "Engine/Source/Os/System.h"
|
|
|
|
// VERIFY: 8e68074b auto
|
|
// OFFSET: 0x0086B240
|
|
uint32_t OsGetNumberOfProcessors() {
|
|
SYSTEM_INFO info = {};
|
|
GetSystemInfo(&info);
|
|
|
|
if (!info.dwNumberOfProcessors) {
|
|
return 1;
|
|
}
|
|
|
|
return info.dwNumberOfProcessors;
|
|
}
|
|
|
|
#endif
|