diff options
Diffstat (limited to 'Ryujinx/Program.cs')
-rw-r--r-- | Ryujinx/Program.cs | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/Ryujinx/Program.cs b/Ryujinx/Program.cs index 08a9859d..cb8ab48e 100644 --- a/Ryujinx/Program.cs +++ b/Ryujinx/Program.cs @@ -1,3 +1,4 @@ +using ARMeilleure.Translation.PTC; using Gtk; using Ryujinx.Common.Logging; using Ryujinx.Common.SystemInfo; @@ -110,10 +111,16 @@ namespace Ryujinx Logger.PrintError(LogClass.Application, $"Unhandled exception caught: {exception}"); + Ptc.Close(); + PtcProfiler.Stop(); + if (e.IsTerminating) { Logger.Shutdown(); + + Ptc.Dispose(); + PtcProfiler.Dispose(); } } } -}
\ No newline at end of file +} |