fix(game-env): allow Supergiant mscoree fallback (#2143)

* fix(game-env): allow the builtin mscoree for Supergiant .NET crash reporter

* test(game-env): cover Supergiant mscoree fallback

---------

Co-authored-by: xor <31260844+randornot@users.noreply.github.com>
This commit is contained in:
Kurt Himebauchandxor authored and GitHub committed 2026-11-05 18:04:16 -05:00
1 parent 8ac5652131
commit ecedf131e0
2 files changed
+19

No files matched your search

@@ -111,6 +111,12 @@ def d3dgear_hook(game):
return {"WINEDLLOVERRIDES": "d3dgear64=d"}, [], "D3DGear capture hook off (it stops the game drawing)"
@fix
def supergiant_dotnet_reporter(game):
if "basecampbugreporter.native.dll" in game.files:
return {"WINEDLLOVERRIDES": "mscoree=n,b"}, [], "Supergiant: allow the builtin mscoree"
@fix
def deep_rock_gdk_raytracing(game):
if game.stem == "fsd-wingdk-shipping" and not any(game.has_arg(arg) for arg in ("-raytracing", "-noraytracing")):
+13
View File
@@ -19,6 +19,19 @@ STATE = tempfile.TemporaryDirectory()
COMPAT["main"].__globals__["COMPAT_DIR"] = STATE.name
class SupergiantDotnetReporterTest(unittest.TestCase):
def test_allows_the_builtin_mscoree_for_supergiant_reporter(self):
game = mock.Mock(files={"basecampbugreporter.native.dll"})
self.assertEqual(
({"WINEDLLOVERRIDES": "mscoree=n,b"}, [], "Supergiant: allow the builtin mscoree"),
MODULE["supergiant_dotnet_reporter"](game),
)
def test_ignores_games_without_the_supergiant_reporter(self):
game = mock.Mock(files={"enginewin64s.dll"})
self.assertIsNone(MODULE["supergiant_dotnet_reporter"](game))
def mapping_of(text):
tokens = COMPAT["tokenize"](text)
return COMPAT["read_mapping"](tokens, COMPAT["mapping_block"](tokens))