From 3e02cf8092da6caf2f7d610720265b846d7c6cc2 Mon Sep 17 00:00:00 2001 From: KlaasWhite <45828001+KlaasWhite@users.noreply.github.com> Date: Sat, 15 Nov 2025 19:47:50 +0100 Subject: [PATCH 1/2] Fix package release --- .github/workflows/release-zip.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/release-zip.yml b/.github/workflows/release-zip.yml index 46b6c20..f4cc563 100644 --- a/.github/workflows/release-zip.yml +++ b/.github/workflows/release-zip.yml @@ -141,5 +141,4 @@ jobs: /p:Version=${{ steps.version.outputs.new }} \ /p:AssemblyVersion=${{ steps.version.outputs.new }} \ /p:FileVersion=${{ steps.version.outputs.new }} - dotnet nuget add source --username "${{ github.actor }}" --password "${{ secrets.GITHUB_TOKEN }}" --store-password-in-clear-text --name github "${{ env.NUGET_SOURCE }}" dotnet nuget push ./nupkg/*.nupkg --source github --api-key "${{ secrets.GITHUB_TOKEN }}" --skip-duplicate From 1e72bcaa8975dfec2e8d095339e12ba1968ebc29 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maximilian=20Ne=C3=9Flauer?= Date: Sat, 21 Feb 2026 13:21:42 +0100 Subject: [PATCH 2/2] Fix crash on startup with KSA r3646 KSA r3646 added `Directory.SetCurrentDirectory(AppDomain.CurrentDomain.BaseDirectory)` at the top of Program.Main() to fix a Linux startup crash. When launched via StarMap, AppDomain.CurrentDomain.BaseDirectory resolves to StarMap's directory instead of the game directory, causing the game to look for assets in the wrong location. Fix by setting APP_CONTEXT_BASE_DIRECTORY to the game directory, which is the backing store for AppDomain.CurrentDomain.BaseDirectory in .NET. Fixes #55 --- StarMap/GameSurveyer.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/StarMap/GameSurveyer.cs b/StarMap/GameSurveyer.cs index bdd67e8..371a191 100644 --- a/StarMap/GameSurveyer.cs +++ b/StarMap/GameSurveyer.cs @@ -40,6 +40,7 @@ public bool TryLoadCoreAndGame() } Directory.SetCurrentDirectory(gameDirectory); + AppContext.SetData("APP_CONTEXT_BASE_DIRECTORY", gameDirectory + Path.DirectorySeparatorChar); _core = core; core.Init();