Skip to content

Play your Steam library's Windows games on a jailbroken PS5.

C++

Offer 3840×2160 in the Resolution setting

Leonardo Lobato8c1f1c501bc5
diff --git a/src/runtime/game_settings.cpp b/src/runtime/game_settings.cpp
index eb018f9..1ffa5a4 100644
--- a/src/runtime/game_settings.cpp
+++ b/src/runtime/game_settings.cpp
@@ -78,7 +78,8 @@ std::vector<SettingDefinition> BuildCatalogue() {
"[display] desktop", T::kBasic,
{{"1280x720", "1280×720", "Smoother frame rate in heavy scenes. Softer on a 4K TV."},
{"1920x1080", "1920×1080", "Full HD."},
- {"2560x1440", "2560×1440", "Sharper image. May drop below 60 fps."}},
+ {"2560x1440", "2560×1440", "Sharper image. May drop below 60 fps."},
+ {"3840x2160", "3840×2160", "The TV's own size. For light games; heavy ones run slowly."}},
"1920x1080"));
list.push_back(Choice("controller", "Controller", "How the game sees your DualSense.", "[input] mode", T::kBasic,
{{"xinput", "Xbox controller", "For games with controller support."},
diff --git a/tests/game_settings_test.cpp b/tests/game_settings_test.cpp
index ac64724..9362595 100644
--- a/tests/game_settings_test.cpp
+++ b/tests/game_settings_test.cpp
@@ -835,7 +835,8 @@ int main(int argc, char** argv) {
CHECK(!ParseProfileSidecar(R"({"schema_version":1,"profile":"x","game":{"name":"X","steam_appid":4294967296},"checks":[{}]})", &community, &reason));
// Bad player values are rejected before saving; stale ones never block a launch.
- CHECK(!ValidateSettingValue(hl2, "resolution", "3840x2160", &reason));
+ CHECK(!ValidateSettingValue(hl2, "resolution", "5120x2880", &reason));
+ CHECK(ValidateSettingValue(hl2, "resolution", "3840x2160", &reason)); // the TV's own size
CHECK(!ValidateSettingValue(hl2, "extra_arguments", "-a \"b", &reason));
CHECK(!ValidateSettingValue(hl2, "extra_arguments", "{resolution}", &reason));
CHECK(!ValidateSettingValue(hl2, "library_overrides", "d3d9", &reason));