Play your Steam library's Windows games on a jailbroken PS5.
C++
Lock graphics and Steam features for FF XIII
Leonardo Lobatoec78a973aff3
diff --git a/runtime/recipes/steam-292120-ffxiii-v1.json b/runtime/recipes/steam-292120-ffxiii-v1.jsonindex 1caf1a7..8733b00 100644--- a/runtime/recipes/steam-292120-ffxiii-v1.json+++ b/runtime/recipes/steam-292120-ffxiii-v1.json@@ -21,5 +21,5 @@"registry": {"Software\\Wine\\AppDefaults\\ffxiiiimg.exe\\Direct3D": {"VideoMemorySize": "4096"}},- "locked": []+ "locked": ["graphics", "steam_features"]}diff --git a/tests/game_settings_test.cpp b/tests/game_settings_test.cppindex c205e87..5cd0547 100644--- a/tests/game_settings_test.cpp+++ b/tests/game_settings_test.cpp@@ -673,7 +673,16 @@ int main(int argc, char** argv) {SettingsError error;CHECK(BuildEffectiveSettings(ffxiii, nullptr, {}, KitCapabilities{}, &settings, &error));CHECK(settings.graphics == "dxvk" && settings.dll_overrides == "d3d9=n");- CHECK(settings.values.at("steam_features").value == "emulate" && !settings.values.at("steam_features").locked);+ // Both rows are locked: Direct3D 9 goes to DXVK whatever Graphics says, and without the emulator+ // sgw.dll quits two seconds in. "Change anyway" still lets the player try.+ CHECK(settings.values.at("steam_features").value == "emulate" && settings.values.at("steam_features").locked);+ CHECK(settings.values.at("graphics").locked);+ CHECK(BuildEffectiveSettings(ffxiii, nullptr, {{"steam_features", "game"}}, KitCapabilities{}, &settings, &error));+ CHECK(settings.values.at("steam_features").value == "emulate");+ CHECK(BuildEffectiveSettings(ffxiii, nullptr, {{"steam_features", "game"}, {"unlock.steam_features", "on"}},+ KitCapabilities{}, &settings, &error));+ CHECK(settings.values.at("steam_features").value == "game" && settings.values.at("steam_features").unlocked);+ CHECK(BuildEffectiveSettings(ffxiii, nullptr, {}, KitCapabilities{}, &settings, &error));// Its own full-screen, size and quality arguments; the size follows the Resolution row.CHECK(settings.arguments == "-FullScreenMode=Force -Width=1920 -Height=1080 -Shadow=4096 -MSAA=4");CHECK(BuildEffectiveSettings(ffxiii, nullptr, {{"resolution", "1280x720"}}, KitCapabilities{}, &settings, &error));