mirror of
https://git.ryujinx.app/kenji-nx/ryujinx.git
synced 2025-12-15 19:37:05 +00:00
misc: chore: [ci skip] Log errors from TaskScheduler.UnobservedTaskException
This commit is contained in:
parent
2e40b436aa
commit
4cbfd38633
1 changed files with 4 additions and 1 deletions
|
|
@ -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.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue