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:
parent
b0b93fe0df
commit
4a3631ef3e
|
@ -80,15 +80,7 @@ namespace BizHawk.Client.EmuHawk
|
||||||
|
|
||||||
[STAThread]
|
[STAThread]
|
||||||
private static int Main(string[] args)
|
private static int Main(string[] args)
|
||||||
{
|
=> SubMain(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;
|
|
||||||
}
|
|
||||||
|
|
||||||
// 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
|
// 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)]
|
[System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.NoInlining)]
|
||||||
|
|
Loading…
Reference in New Issue