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:
David Kubeša authored and GitHub committed 2026-11-15 09:35:14 -05:00
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"