- CGObject_C base, CEffect, CObjectEffect/CObjectEffectManager effect states - Unit, Player, Item/Container/Bag, Corpse, DynamicObject, GameObject and all GameObject type classes (vtables matched slot by slot), Movement, MovementShared, Missile, Vehicle/Passenger/Camera, combat log, caches - Client object manager (0x4D3100-0x4D7880) incl. SMSG_UPDATE_OBJECT, SMSG_COMPRESSED_UPDATE_OBJECT, SMSG_DESTROY_OBJECT; type ctors/PostInit - CGGameUI::CanPerformAction and the ready part of CGInputControl - Layouts named from descriptor fields and code; CM2Model 0x134 matrix, CClientObjCreate tail, CGUnit_C/CGPlayer_C sizes 0x1008/0x1958 - WOWGUID struct replaces the IDB's WGUID low/high pair and guid uint64_t; SmartGUID derives from it; member functions returning a guid keep uint64_t (MSVC returns class types from members via hidden pointer); structs with 4-aligned guids in 12340 use pack(4) Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
69 lines
1.4 KiB
C++
69 lines
1.4 KiB
C++
#if defined(WOWDECOMP_ARCH_32)
|
|
|
|
#include <windows.h>
|
|
#include <cstdlib>
|
|
#include <float.h>
|
|
#include "Engine/Source/Storm/H/storm.h"
|
|
#include "WoW/Source/Client.h"
|
|
|
|
// STATIC: 0x00B311E8
|
|
static LPVOID lpFiber;
|
|
|
|
static void InvalidParameterHandler(const wchar_t* expression, const wchar_t* function, const wchar_t* file, unsigned int line, uintptr_t reserved) {
|
|
}
|
|
|
|
static bool ReturnFalse() {
|
|
return false;
|
|
}
|
|
|
|
extern "C" int WinMainCRTStartup();
|
|
|
|
// VERIFY: eff982d2 auto
|
|
// OFFSET: 0x00401000
|
|
extern "C" int start() {
|
|
StormRtlInitialize();
|
|
return WinMainCRTStartup();
|
|
}
|
|
|
|
// VERIFY: d518fe65 auto
|
|
// OFFSET: 0x00406D70
|
|
int main() {
|
|
_set_invalid_parameter_handler(InvalidParameterHandler);
|
|
_clearfp();
|
|
_control87(0x9001F, 0xFFFFFFFF);
|
|
ReturnFalse();
|
|
|
|
return CommonMain();
|
|
}
|
|
|
|
// VERIFY: e860ff37 auto
|
|
// OFFSET: 0x0040B7D0
|
|
static VOID CALLBACK MainFiberProc(LPVOID parameter) {
|
|
*static_cast<int*>(parameter) = main();
|
|
SwitchToFiber(lpFiber);
|
|
}
|
|
|
|
// VERIFY: c31422a4 manual
|
|
// OFFSET: 0x0040B7F0
|
|
int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nShowCmd) {
|
|
lpFiber = ConvertThreadToFiber(nullptr);
|
|
|
|
if (!lpFiber) {
|
|
return -1;
|
|
}
|
|
|
|
int result = -1;
|
|
LPVOID fiber = CreateFiberEx(0, 0x800000, 0, MainFiberProc, &result);
|
|
|
|
if (!fiber) {
|
|
return -1;
|
|
}
|
|
|
|
SwitchToFiber(fiber);
|
|
DeleteFiber(fiber);
|
|
|
|
return result;
|
|
}
|
|
|
|
#endif
|