- Grunt login ported end to end (SRP6 challenge/proof, version checksum, realm list) and tested against a live server: authenticates, connects to the world server (auth session with proof-of-work, header crypt), receives the character list and shows character select - Glue: realm list UI, character select (list, models, scripts), character create screen + name generator, delete/rename/decline, Enter World up to the loading screen; loading screen drawing and progress - AccountData (times, update, upload/download), BannedAddOns, addon scan and addon info, client cache version, tutorial flags - Shutdown path at login state: world/map/liquid/weather teardown, NetClient, ComSat, streaming stop; Logitech LCD no-device path in Ui/UILCD/Windows - PCRE 5.0 vendored (core stock; chartables and the posix layer from 12340), ValidateName - Fixes: TSGrowableArray::CalcChunkSize clamps to >= 8 (crash on char list), CWorldScene liquid renderer allocation, CMapFootprintTexture element ctor, pointer render states on x64, CFrustum/CWFrustum layout, M2 draw callback arguments, 37 class/struct forward-declaration mismatches - IDB name sync (1217 names), verify aliases, harness large-element instantiation Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
67 lines
1.4 KiB
C++
67 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();
|
|
}
|
|
|
|
// 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);
|
|
}
|
|
|
|
// 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
|