benilla-re systems structs docs

DetectHardware

function · unassigned · primitive

Address
0x641260 · 940 bytes, up to 0x64160b
Signature
void __fastcall (void *record, uint8_t *changed)
Meaning
Loads the VideoHardware table once, then matches the machine and fills the detection record
Confidence
verified, proof one
Finding
console/hardware#hardware-table

Finding: Hardware table in console: hardware

0x641260 loads the table on its first call and is called each start-up. The file is DBFilesClient\VideoHardware.dbc (22 fields, 0x58 bytes a row; tables/dbc_schemas.tsv). The loader checks the WDBC magic, the field count and the row size, reads the rows and the string block, and builds an index by row id. A file that will not open, or whose field count or row size differs, is reported through the fatal-error function 0x64cf80; a bad magic or an empty table leaves the table empty, and a failed string read is reported through 0x64d0e0. The store is five words at 0xc518c8: the rows, their count, the id index, the largest id and the loaded flag.

The derivation is in the doc.

Callers 1

Callees 17

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