benilla-re systems structs docs

GxLogIfOpen

function · gx · orchestration

Address
0x595e70 · 25 bytes, up to 0x595e88
Signature
void __cdecl (const char *format, ...)
Meaning
Writes a formatted line to the device log when the log is open
Confidence
verified, proof one
Finding
gx/device#device-log

Finding: Device log in gx: the device

The device logs to Logs\gx.log. The console's device start calls 0x58b5e0, which opens the log once, after creating Logs. Without the log a line is dropped; otherwise it is formatted with vsnprintf into 2 KiB and written while fewer than 2 MiB (0x200000 bytes) have gone to it, and passed with the prefix CGxDevice::Log(): to 0x590630, which only returns. The console's device start and the hardware detection print through 0x58b600 and the device through 0x595e70; both reach 0x595df0, so they act alike. The device logs its caps (0x595e90) and each format it sets (0x595f40), as Format: W x H Window or Format W x H @ R Fullscreen, with the colour and depth names and the sample count.

The derivation is in the doc.

Callers 11

Callees 1

Calls and jumps by a bare address, from tables/calls.tsv.