Skip to content

Comments

Ensure native game DLLs are discoverable under .NET 10 (Interim launcher)#38

Open
shihan42 wants to merge 1 commit intoSpaceGT:mainfrom
shihan42:fix/interim-native-dll-search-path
Open

Ensure native game DLLs are discoverable under .NET 10 (Interim launcher)#38
shihan42 wants to merge 1 commit intoSpaceGT:mainfrom
shihan42:fix/interim-native-dll-search-path

Conversation

@shihan42
Copy link

@shihan42 shihan42 commented Feb 3, 2026

Summary

This PR ensures that native game DLLs are discoverable when launching Space Engineers via Interim.exe under .NET 10 and Windows.

Background

Under .NET (Core/10) on Windows, native DLL resolution does not implicitly probe the game directory. As a result, Interim.exe can fail with a DllNotFoundException (for example when loading Havok.dll) on some systems.

On many Windows systems, this issue does not surface because the native DLL search path is implicitly satisfied by the execution environment (e.g. PATH entries, launch context, prior native loads, etc.).

Fix

Explicitly add the game directory to the native DLL search path before starting Space Engineers when running under NETCOREAPP.

This makes native DLL resolution explicit and deterministic across environments, without changing behavior for the legacy launcher.

Scope

  • Affects Interim.exe on Windows only
  • No changes to Legacy.exe
  • Minimal, localized change

Context

This PR is based on the debugging discussion in Discord regarding an Interim.exe startup crash caused by missing native DLLs.

Discussion in Discord: https://discord.com/channels/1378756728107040829/1467840378056081552

Diagnostic evidence is available if needed.

Under .NET (Core/10) on Windows, native DLL resolution does not
implicitly probe the game directory. This can cause Interim.exe to
fail with DllNotFoundException (e.g. Havok.dll) on some systems. On
many systems, the native DLL search path is implicitly satisfied by
the environment.

Explicitly add the game directory to the native DLL search path
before starting Space Engineers.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant