Publish curated LumaOps source from c85ee9ef8f1454f5c305398902afbb9e6738de40
Managed validation / full (push) Failing after 8s

This commit is contained in:
Public Source Publisher committed 2026-09-30 00:26:45 +00:00
1 parent 91f8b3e3c1
commit def7920856
2271 files changed
+501225 -501178

No files matched your search

+50 -50
View File
@@ -1,50 +1,50 @@
/*---------------------------------------------------------*\
| dmiinfo.h |
| |
| Read DMI information for motherboard vendor and name |
| |
| Chris M (Dr_No) 30 Jun 2020 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-or-later |
\*---------------------------------------------------------*/
#pragma once
#include <string>
#ifdef WIN32
#include "wmi.h"
#define WMI "WMI"
#else
#include <unistd.h>
#include <fstream>
/*---------------------------------------------------------*\
| 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
{
public:
DMIInfo();
~DMIInfo();
#ifdef WIN32
std::string readWMIQuery(std::string query, std::string key);
#else
std::string readFilePath(std::string path);
#endif
std::string getMainboard();
std::string getManufacturer();
std::string getProductName();
private:
std::string mainboard;
std::string manufacturer;
std::string product_name;
};
/*---------------------------------------------------------*\
| dmiinfo.h |
| |
| Read DMI information for motherboard vendor and name |
| |
| Chris M (Dr_No) 30 Jun 2020 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-or-later |
\*---------------------------------------------------------*/
#pragma once
#include <string>
#ifdef WIN32
#include "wmi.h"
#define WMI "WMI"
#else
#include <unistd.h>
#include <fstream>
/*---------------------------------------------------------*\
| 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
{
public:
DMIInfo();
~DMIInfo();
#ifdef WIN32
std::string readWMIQuery(std::string query, std::string key);
#else
std::string readFilePath(std::string path);
#endif
std::string getMainboard();
std::string getManufacturer();
std::string getProductName();
private:
std::string mainboard;
std::string manufacturer;
std::string product_name;
};