From 148c2bb4841c3a2112d9b0111143ab799757eeff Mon Sep 17 00:00:00 2001 From: Stefan Koelle Date: Tue, 11 Aug 2026 14:44:46 +0200 Subject: [PATCH] fix: use Directory.GetCurrentDirectory() for bundled config path --- src/MarcerGameDvdLauncher/LauncherApp.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/MarcerGameDvdLauncher/LauncherApp.cs b/src/MarcerGameDvdLauncher/LauncherApp.cs index 44744d1..edc458b 100644 --- a/src/MarcerGameDvdLauncher/LauncherApp.cs +++ b/src/MarcerGameDvdLauncher/LauncherApp.cs @@ -65,9 +65,10 @@ namespace MarcerGameDvdLauncher // If no Hatari config file was specified, fall back to the bundled // MarcerGameDvd-Hatari.cfg that ships with the launcher. + // Use current working directory to allow running from different locations if (string.IsNullOrWhiteSpace(cfg.Hatari.ConfigFile)) { - cfg.Hatari.ConfigFile = Path.Combine(exeDir, HatariLauncher.DefaultConfigFile); + cfg.Hatari.ConfigFile = Path.Combine(Directory.GetCurrentDirectory(), HatariLauncher.DefaultConfigFile); } // Validate the Hatari config file (either user-specified or bundled fallback)