aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Ava/AppHost.cs
diff options
context:
space:
mode:
authorgdkchan <gab.dark.100@gmail.com>2023-01-04 20:01:44 -0300
committerGitHub <noreply@github.com>2023-01-05 00:01:44 +0100
commitfc4b7cba2c083b3920f2d74e0cb4b08cf7a5a278 (patch)
treebaa5d9a71ee011ecbaeee9a67e037cb399eb7d0e /Ryujinx.Ava/AppHost.cs
parent08831eecf77cedd3c4192ebab5a9c485fb15d51e (diff)
Make PPTC state non-static (#4157)
* Make PPTC state non-static * DiskCacheLoadState can be null
Diffstat (limited to 'Ryujinx.Ava/AppHost.cs')
-rw-r--r--Ryujinx.Ava/AppHost.cs7
1 files changed, 2 insertions, 5 deletions
diff --git a/Ryujinx.Ava/AppHost.cs b/Ryujinx.Ava/AppHost.cs
index 0baa94c3..2cf53ef6 100644
--- a/Ryujinx.Ava/AppHost.cs
+++ b/Ryujinx.Ava/AppHost.cs
@@ -1,5 +1,4 @@
using ARMeilleure.Translation;
-using ARMeilleure.Translation.PTC;
using Avalonia.Input;
using Avalonia.Threading;
using LibHac.Tools.FsSystem;
@@ -280,7 +279,7 @@ namespace Ryujinx.Ava
_parent.Title = $"Ryujinx {Program.Version}{titleNameSection}{titleVersionSection}{titleIdSection}{titleArchSection}";
});
- _parent.ViewModel.HandleShaderProgress(Device);
+ _parent.ViewModel.SetUiProgressHandlers(Device);
Renderer.SizeChanged += Window_SizeChanged;
@@ -357,8 +356,6 @@ namespace Ryujinx.Ava
DisplaySleep.Restore();
- Ptc.Close();
- PtcProfiler.Stop();
NpadManager.Dispose();
TouchScreenManager.Dispose();
Device.Dispose();
@@ -949,7 +946,7 @@ namespace Ryujinx.Ava
if (_keyboardInterface.GetKeyboardStateSnapshot().IsPressed(Key.Delete) && _parent.WindowState != WindowState.FullScreen)
{
- Ptc.Continue();
+ Device.Application.DiskCacheLoadState?.Cancel();
}
});
}