CGxDeviceD3d::LoadD3d
function · gx · host
- Address
0x598e40· 110 bytes, up to0x598ead- Signature
uint32_t __fastcall (void **module, void **d3d)- Meaning
- Loads d3d9.dll, calls Direct3DCreate9 with 32 and returns whether it got an interface
- Confidence
- verified, proof one
- Finding
- gx/device#direct3d-device-start
Finding: Direct3D device start in gx: the device
Slot +0x20 of CGxDeviceD3d (0x599a60, arguments the window procedure and the format) saves the screen's gamma ramp (GetDeviceGammaRamp into +0x928, copied to +0x328), registers the window class GxWindowClassD3d (0x599b30, icon BlizzardIcon.ico, cursor BlizzardCursor.cur, procedure 0x598750) and runs 0x5992a0, which loads d3d9.dll (0x598e40, Direct3DCreate9(32)), reads GetDeviceCaps into +0x38ac and GetAdapterDisplayMode into +0x3a24. It stores the window procedure at +0xf28 and calls slot +0x28 (0x599c90) with the format: that copies the format to +0x204, creates the window (0x598b50), creates the device (0x5995c0) and shows the window.
The derivation is in the doc.
Callers 4
- CGxDeviceD3d::EnumerateFormats gx
- 0x58baa0 gx
- CGxDevice::InferAdapterClass gx
- CGxDeviceD3d::LoadAdapter gx
Callees 2
- GxLogIfOpen gx
- 0x598eb0 gx
Calls and jumps by a bare address, from tables/calls.tsv.