aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.HLE/HOS/ApplicationLoader.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Ryujinx.HLE/HOS/ApplicationLoader.cs')
-rw-r--r--Ryujinx.HLE/HOS/ApplicationLoader.cs11
1 files changed, 11 insertions, 0 deletions
diff --git a/Ryujinx.HLE/HOS/ApplicationLoader.cs b/Ryujinx.HLE/HOS/ApplicationLoader.cs
index 46b62178..96fb3a1f 100644
--- a/Ryujinx.HLE/HOS/ApplicationLoader.cs
+++ b/Ryujinx.HLE/HOS/ApplicationLoader.cs
@@ -498,8 +498,13 @@ namespace Ryujinx.HLE.HOS
Logger.Warning?.Print(LogClass.Ptc, $"Detected exefs modifications. PPTC disabled.");
}
+ Graphics.Gpu.GraphicsConfig.TitleId = TitleIdText;
+ _device.Gpu.HostInitalized.Set();
+
Ptc.Initialize(TitleIdText, DisplayVersion, _device.System.EnablePtc && !modified);
+ _device.Gpu.ReadyEvent.WaitOne();
+
ProgramLoader.LoadNsos(_device.System.KernelContext, metaData, executables: programs);
}
@@ -595,6 +600,12 @@ namespace Ryujinx.HLE.HOS
TitleId = metaData.Aci0.TitleId;
TitleIs64Bit = metaData.Is64Bit;
+ // Explicitly null titleid to disable the shader cache
+ Graphics.Gpu.GraphicsConfig.TitleId = null;
+
+ _device.Gpu.HostInitalized.Set();
+ _device.Gpu.ReadyEvent.WaitOne();
+
ProgramLoader.LoadNsos(_device.System.KernelContext, metaData, executables: executable);
}