misc: chore: [ci skip] Log errors from TaskScheduler.UnobservedTaskException

This commit is contained in:
Evan Husted
2025-02-05 01:16:41 -06:00
committed by KeatonTheBot
parent 2e40b436aa
commit 4cbfd38633
+4 -1
View File
@@ -93,7 +93,10 @@ namespace Ryujinx.Ava
Console.Title = $"Ryujinx Console {Version}";
// Hook unhandled exception and process exit events.
AppDomain.CurrentDomain.UnhandledException += (sender, e) => ProcessUnhandledException(e.ExceptionObject as Exception, e.IsTerminating);
AppDomain.CurrentDomain.UnhandledException += (sender, e)
=> ProcessUnhandledException(e.ExceptionObject as Exception, e.IsTerminating);
TaskScheduler.UnobservedTaskException += (sender, e)
=> ProcessUnhandledException(e.Exception, false);
AppDomain.CurrentDomain.ProcessExit += (sender, e) => Exit();
// Setup base data directory.