mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-04-20 11:35:45 +00:00
fix config for gpu settings
This commit is contained in:
parent
35777a9fb3
commit
7d96308759
1 changed files with 6 additions and 6 deletions
|
@ -77,13 +77,13 @@ void load(const std::filesystem::path& path) {
|
|||
}
|
||||
}
|
||||
if (data.contains("GPU")) {
|
||||
auto generalResult = toml::expect<toml::value>(data.at("GPU"));
|
||||
if (generalResult.is_ok()) {
|
||||
auto general = generalResult.unwrap();
|
||||
auto gpuResult = toml::expect<toml::value>(data.at("GPU"));
|
||||
if (gpuResult.is_ok()) {
|
||||
auto gpu = gpuResult.unwrap();
|
||||
|
||||
screenWidth = toml::find_or<toml::integer>(general, "screenWidth", screenWidth);
|
||||
screenHeight = toml::find_or<toml::integer>(general, "screenHeight", screenHeight);
|
||||
gpuId = toml::find_or<toml::integer>(general, "gpuId", 0);
|
||||
screenWidth = toml::find_or<toml::integer>(gpu, "screenWidth", screenWidth);
|
||||
screenHeight = toml::find_or<toml::integer>(gpu, "screenHeight", screenHeight);
|
||||
gpuId = toml::find_or<toml::integer>(gpu, "gpuId", 0);
|
||||
}
|
||||
}
|
||||
if (data.contains("Debug")) {
|
||||
|
|
Loading…
Add table
Reference in a new issue