From 5fc4b108cdf9b6b7e6df57bee6c6cda21b9b6300 Mon Sep 17 00:00:00 2001 From: Daniel Tang Date: Sun, 11 Dec 2022 18:24:01 -0500 Subject: [PATCH] Don't leave an extra shell open on Linux/macOS --- PatchLoaderMod/Doorstop/LinuxDoorstopManager.cs | 4 ++-- PatchLoaderMod/Doorstop/MacOSDoorstopManager.cs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/PatchLoaderMod/Doorstop/LinuxDoorstopManager.cs b/PatchLoaderMod/Doorstop/LinuxDoorstopManager.cs index f8d5fbd..8c87990 100644 --- a/PatchLoaderMod/Doorstop/LinuxDoorstopManager.cs +++ b/PatchLoaderMod/Doorstop/LinuxDoorstopManager.cs @@ -40,7 +40,7 @@ public class LinuxDoorstopManager : DoorstopManager { "export LD_PRELOAD", "export DOORSTOP_ENABLE", "export DOORSTOP_INVOKE_DLL_PATH", - "./Cities.x64 $@" + "exec ./Cities.x64 $@" ); public LinuxDoorstopManager(string expectedTargetAssemblyPath, Logger logger) : base(expectedTargetAssemblyPath, logger) { @@ -111,4 +111,4 @@ protected override bool IsLatestLoaderVersion() { return LoaderMD5.Equals(loaderHash); } } -} \ No newline at end of file +} diff --git a/PatchLoaderMod/Doorstop/MacOSDoorstopManager.cs b/PatchLoaderMod/Doorstop/MacOSDoorstopManager.cs index e09a7ce..7d8fe5e 100644 --- a/PatchLoaderMod/Doorstop/MacOSDoorstopManager.cs +++ b/PatchLoaderMod/Doorstop/MacOSDoorstopManager.cs @@ -43,7 +43,7 @@ public class MacOSDoorstopManager: DoorstopManager { "export DYLD_INSERT_LIBRARIES", "export DOORSTOP_ENABLE", "export DOORSTOP_INVOKE_DLL_PATH", - "./Cities.app/Contents/MacOS/Cities $@" + "exec ./Cities.app/Contents/MacOS/Cities $@" ); public MacOSDoorstopManager(string expectedTargetAssemblyPath, Logger logger) : base(expectedTargetAssemblyPath, logger) { @@ -122,4 +122,4 @@ protected override bool IsLatestLoaderVersion() { return true; } } -} \ No newline at end of file +}