From 4a3631ef3e69218960557b8580ee28d31f3d802e Mon Sep 17 00:00:00 2001 From: YoshiRulz Date: Thu, 29 May 2025 14:36:04 +1000 Subject: [PATCH] Remove old Mono-specific process kill call I tried putting an uncaught exception in a bunch of places and it exited in every case --- src/BizHawk.Client.EmuHawk/Program.cs | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/BizHawk.Client.EmuHawk/Program.cs b/src/BizHawk.Client.EmuHawk/Program.cs index f1ea4b31e4..2c6fdc5cab 100644 --- a/src/BizHawk.Client.EmuHawk/Program.cs +++ b/src/BizHawk.Client.EmuHawk/Program.cs @@ -80,15 +80,7 @@ namespace BizHawk.Client.EmuHawk [STAThread] private static int Main(string[] args) - { - var exitCode = SubMain(args); - if (!RuntimeInformation.IsOSPlatform(OSPlatform.Windows)) - { - Console.WriteLine("BizHawk has completed its shutdown routines, killing process..."); - Process.GetCurrentProcess().Kill(); - } - return exitCode; - } + => SubMain(args); // NoInlining should keep this code from getting jammed into Main() which would create dependencies on types which havent been setup by the resolver yet... or something like that [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.NoInlining)]