mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-11-25 07:46:01 +00:00
Merge main (c298da6f) into feat/bionic-runtime
One conflict: .github/workflows/build.yml. This branch had a step that fetched Robolectric's Android jars from a DroidDeck-CI release because Maven Central answered the runners with HTTP 429; main now caches those jars (#3127, #3134), so build.yml is main's again and this pull request no longer changes it. ProtonMenu, ProtonExtras, SessionService, SessionOverlay and droiddeck-game-env merged cleanly; test_game_environment.py and test_proton_extra.py pass (207 tests).
This commit is contained in:
commit
cc5de0ba63
308 files changed
+14468
-3934
No files matched your search
@@ -1977,6 +1977,18 @@ class GameEnvironmentTest(unittest.TestCase):
|
||||
self.assertEqual(MODULE["apply_config"]({}, config, "1771300", env), {"VKD3D_FEATURE_LEVEL": "12_1", "VKD3D_SHADER_MODEL": "6_9"})
|
||||
self.assertEqual(MODULE["engine_fixes"](str(exe), [], "42")[0], {})
|
||||
|
||||
def test_hades_ii_runs_at_feature_level_12_2_from_steam_and_xbox_unless_the_game_overrides_it(self):
|
||||
with tempfile.TemporaryDirectory() as tmp:
|
||||
for exe in (Path(tmp) / "Hades II/Ship/Hades2.exe", Path(tmp) / "Xbox/Hades II/Hades2.exe"):
|
||||
exe.parent.mkdir(parents=True)
|
||||
exe.touch()
|
||||
env, extra, notes = MODULE["engine_fixes"](str(exe), [])
|
||||
self.assertEqual(env, {"VKD3D_FEATURE_LEVEL": "12_2"}, str(exe))
|
||||
self.assertTrue(notes)
|
||||
config = {"version": 1, "shared": {}, "games": {"42": {"VKD3D_FEATURE_LEVEL": "12_1"}}}
|
||||
self.assertEqual(MODULE["apply_config"]({}, config, "42", env), {"VKD3D_FEATURE_LEVEL": "12_1"})
|
||||
self.assertEqual(MODULE["engine_fixes"]("/game/Hades/x64/Hades.exe", [])[0], {})
|
||||
|
||||
def test_unity_players_keep_tso_over_the_preset(self):
|
||||
with tempfile.TemporaryDirectory() as tmp:
|
||||
def game(*names):
|
||||
|
||||
Reference in new issue
Block a user