mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 18:30:06 +00:00
Remove constexpr std::string in linux Nvidia code
This commit is contained in:
parent
7723aee1d8
commit
d160ec2e28
1 changed files with 3 additions and 3 deletions
|
|
@ -258,11 +258,11 @@ OverrideDefaultStyle([[maybe_unused]] const std::vector<std::string>& args)
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
constexpr std::string NVIDIA_ID = "0x10de";
|
static void OverridePlatform()
|
||||||
static void OverridePlatform()
|
|
||||||
{
|
{
|
||||||
#if defined(__linux__)
|
#if defined(__linux__)
|
||||||
namespace fs = std::filesystem;
|
static const std::string NVIDIA_ID = "0x10de";
|
||||||
|
namespace fs = std::filesystem;
|
||||||
for (const auto& entry : fs::directory_iterator("/sys/class/drm"))
|
for (const auto& entry : fs::directory_iterator("/sys/class/drm"))
|
||||||
{
|
{
|
||||||
if (!entry.is_directory() ||
|
if (!entry.is_directory() ||
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue