Remove old Mono-specific process kill call

I tried putting an uncaught exception in a bunch of places and it exited
in every case
This commit is contained in:
YoshiRulz 2025-05-29 14:36:04 +10:00
parent b0b93fe0df
commit 4a3631ef3e
No known key found for this signature in database
GPG Key ID: C4DE31C245353FB7
1 changed files with 1 additions and 9 deletions

View File

@ -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)]