mirror of
https://github.com/thunderbrewhq/binana.git
synced 2025-12-12 09:52:28 +00:00
feat(profile): more hardware detection
This commit is contained in:
parent
0fa8d70e2c
commit
1e6fb307de
16 changed files with 26811 additions and 33 deletions
46
profile/3.3.5a-windows-386/include/console/hardware.h
Normal file
46
profile/3.3.5a-windows-386/include/console/hardware.h
Normal file
|
|
@ -0,0 +1,46 @@
|
|||
#ifndef CONSOLE_HARDWARE_H
|
||||
#define CONSOLE_HARDWARE_H
|
||||
|
||||
#include "db/records.h"
|
||||
|
||||
DECLARE_STRUCT(CpuHardware);
|
||||
DECLARE_STRUCT(SoundHardware);
|
||||
DECLARE_STRUCT(Hardware__Device);
|
||||
DECLARE_STRUCT(Hardware);
|
||||
|
||||
struct CpuHardware {
|
||||
uint32_t farclipIdx;
|
||||
uint32_t animatingDoodadIdx;
|
||||
uint32_t waterLODIdx;
|
||||
uint32_t particleDensityIdx;
|
||||
uint32_t smallCullDistIdx;
|
||||
uint32_t unitDrawDistIdx;
|
||||
};
|
||||
|
||||
// struct __declspec(align(4)) SoundHardware
|
||||
struct SoundHardware {
|
||||
uint32_t numChannels;
|
||||
bool fivePointOne;
|
||||
};
|
||||
|
||||
// struct Hardware::Device
|
||||
struct Hardware__Device {
|
||||
uint16_t vendorID;
|
||||
uint16_t deviceID;
|
||||
uint32_t driverVersionHi;
|
||||
uint32_t driverVersionLo;
|
||||
};
|
||||
|
||||
struct Hardware {
|
||||
Hardware__Device videoDevice;
|
||||
Hardware__Device soundDevice;
|
||||
uint32_t cpuIdx;
|
||||
uint32_t videoIdx;
|
||||
uint32_t soundIdx;
|
||||
uint32_t memIdx;
|
||||
VideoHardwareRec* videoHw;
|
||||
CpuHardware* cpuHw;
|
||||
SoundHardware* soundHw;
|
||||
};
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue