benilla-re systems structs docs

CGxDevice::Log

function · gx · primitive

Address
0x595df0 · 128 bytes, up to 0x595e6f
Signature
void __fastcall (const char *format, va_list args)
Meaning
Formats a line and writes it to gx.log while under 2 MiB have been written, then passes it to the empty debug output
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 2

Callees 3

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