DetectHardware
function · unassigned · primitive
- Address
0x641260· 940 bytes, up to0x64160b- 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
- ConsoleDeviceInitialize console
Callees 17
- ReadDword404780 unassigned
- OsGetCpuFrequency core
- 0x589990 gx
- GxInferAdapterClass gx
- GxLogPrintf gx
- MatchHardwareRow unassigned
- CheckHardwareChange unassigned
- SMemAlloc storm
- SFile::Open storm
- SFile::Read storm
- SFile::Close storm
- SStrPrintf storm
- SErrDisplayAppFatal2 storm
- SErrDisplayAppFatal storm
- GetVideoHardwarePath dbc
- VideoHardwareRecConstruct dbc
- VideoHardwareRecRead dbc
Calls and jumps by a bare address, from tables/calls.tsv.