mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-11-18 12:28:40 +00:00
fix(game-env): keep Sentry loaded for Godot games with its C# layer (#2605)
Disabling libsentry.windows.* stops Sentry.Godot.dll's module initializer, so GodotPlugins never starts and the game hangs before the menu. Fixes #2604
This commit is contained in:
1 parent
52e8028609
commit
293ed4fb08
2 files changed
+4
-1
No files matched your search
@@ -124,7 +124,8 @@ def godot_vulkan(game):
|
||||
@fix
|
||||
def godot_sentry(game):
|
||||
sentry = sorted(n[:-4] for n in game.files if n.startswith("libsentry.windows.") and n.endswith(".dll"))
|
||||
if is_godot(game) and sentry and ("coreclr.dll" in game.files or "godotsharp.dll" in game.files):
|
||||
# Sentry.Godot.dll's module initializer P/Invokes the native DLL; without it GodotPlugins fails to start.
|
||||
if is_godot(game) and sentry and ("coreclr.dll" in game.files or "godotsharp.dll" in game.files) and "sentry.godot.dll" not in game.files:
|
||||
return {"WINEDLLOVERRIDES": ";".join(n + "=d" for n in sentry)}, [], "Godot: Sentry crash handler off"
|
||||
|
||||
|
||||
|
||||
@@ -1316,6 +1316,8 @@ class GameEnvironmentTest(unittest.TestCase):
|
||||
self.assertEqual(env["WINEDLLOVERRIDES"], "libsentry.windows.release.x86_64=d")
|
||||
self.assertEqual(extra, ["--rendering-driver", "vulkan"])
|
||||
self.assertEqual(MODULE["engine_fixes"](str(game / "Game.exe"), ["--rendering-driver", "opengl3"])[1], [])
|
||||
(game / "data_game_windows_x86_64/Sentry.Godot.dll").touch()
|
||||
self.assertNotIn("WINEDLLOVERRIDES", MODULE["engine_fixes"](str(game / "Game.exe"), [])[0])
|
||||
script = Path(tmp) / "GDScript Game"
|
||||
script.mkdir()
|
||||
for name in ("Game.exe", "Game.pck", "libsentry.windows.release.x86_64.dll"):
|
||||
|
||||
Reference in new issue
Block a user