benilla-re systems structs docs

OpenGxLogFile

function · gx · orchestration

Address
0x595d90 · 49 bytes, up to 0x595dc0
Signature
void __cdecl (void)
Meaning
Creates the Logs folder and opens Logs\gx.log once, zeroing its byte count
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 1

Callees 2

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