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

This commit is contained in:
Evan Husted 2025-01-29 21:07:43 -06:00 committed by KeatonTheBot
parent 2e40b436aa
commit 4cbfd38633

View file

@ -93,7 +93,10 @@ namespace Ryujinx.Ava
Console.Title = $"Ryujinx Console {Version}"; Console.Title = $"Ryujinx Console {Version}";
// Hook unhandled exception and process exit events. // 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(); AppDomain.CurrentDomain.ProcessExit += (sender, e) => Exit();
// Setup base data directory. // Setup base data directory.