mirror of
https://github.com/CalcProgrammer1/OpenRGB.git
synced 2025-12-23 23:37:48 -05:00
Clean up comment formatting in DMI info files
This commit is contained in:
@@ -34,10 +34,11 @@ DMIInfo::DMIInfo()
|
||||
std::string DMIInfo::readWMIQuery(std::string query, std::string key)
|
||||
{
|
||||
HRESULT hres;
|
||||
Wmi wmi;
|
||||
Wmi wmi;
|
||||
|
||||
// Query WMI for Win32_PnPSignedDriver entries with names matching "SMBUS" or "SM BUS"
|
||||
// These devices may be browsed under Device Manager -> System Devices
|
||||
/*-----------------------------------------------------*\
|
||||
| Query WMI |
|
||||
\*-----------------------------------------------------*/
|
||||
std::vector<QueryObj> q_result;
|
||||
hres = wmi.query(query, q_result);
|
||||
|
||||
|
||||
@@ -18,11 +18,14 @@
|
||||
|
||||
#define WMI "WMI"
|
||||
#else
|
||||
#include <unistd.h> //Linux specific filesystem operation
|
||||
#include <unistd.h>
|
||||
#include <fstream>
|
||||
|
||||
#define SYSFS_MB_DMI "/sys/devices/virtual/dmi/id/" //Linux file path for Motherboard
|
||||
#define SYSFS_PC_DMI "/sys/class/dmi/id/" //Linux file path for Product info
|
||||
/*---------------------------------------------------------*\
|
||||
| Linux file paths for Motherboard and Product Info |
|
||||
\*---------------------------------------------------------*/
|
||||
#define SYSFS_MB_DMI "/sys/devices/virtual/dmi/id/"
|
||||
#define SYSFS_PC_DMI "/sys/class/dmi/id/"
|
||||
#endif
|
||||
|
||||
class DMIInfo
|
||||
|
||||
Reference in New Issue
Block a user