From 7d96308759d618f30012923295c32e2d5feb9b4a Mon Sep 17 00:00:00 2001 From: georgemoralis Date: Sun, 28 Apr 2024 19:14:56 +0300 Subject: [PATCH] fix config for gpu settings --- src/common/config.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/common/config.cpp b/src/common/config.cpp index e1363c17..99de5256 100644 --- a/src/common/config.cpp +++ b/src/common/config.cpp @@ -77,13 +77,13 @@ void load(const std::filesystem::path& path) { } } if (data.contains("GPU")) { - auto generalResult = toml::expect(data.at("GPU")); - if (generalResult.is_ok()) { - auto general = generalResult.unwrap(); + auto gpuResult = toml::expect(data.at("GPU")); + if (gpuResult.is_ok()) { + auto gpu = gpuResult.unwrap(); - screenWidth = toml::find_or(general, "screenWidth", screenWidth); - screenHeight = toml::find_or(general, "screenHeight", screenHeight); - gpuId = toml::find_or(general, "gpuId", 0); + screenWidth = toml::find_or(gpu, "screenWidth", screenWidth); + screenHeight = toml::find_or(gpu, "screenHeight", screenHeight); + gpuId = toml::find_or(gpu, "gpuId", 0); } } if (data.contains("Debug")) {