aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Graphics.Gpu/Shader/Cache/CacheManager.cs
diff options
context:
space:
mode:
authorMary <me@thog.eu>2020-12-13 08:46:07 +0100
committerGitHub <noreply@github.com>2020-12-13 08:46:07 +0100
commit6bc2733c1796788590c9f0114013d2e4b555e31e (patch)
treea729af2552637718fc3883108539c6da6523efd6 /Ryujinx.Graphics.Gpu/Shader/Cache/CacheManager.cs
parent19d18662ea3ed5470898ed2b7bbb06d45f6004dd (diff)
salieri: Support read-only mode if archive is already opened (#1807)
This improves shader cache resilience when people opens another program that touch the cache.zip.
Diffstat (limited to 'Ryujinx.Graphics.Gpu/Shader/Cache/CacheManager.cs')
-rw-r--r--Ryujinx.Graphics.Gpu/Shader/Cache/CacheManager.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/Ryujinx.Graphics.Gpu/Shader/Cache/CacheManager.cs b/Ryujinx.Graphics.Gpu/Shader/Cache/CacheManager.cs
index ca0070fd..1ac37704 100644
--- a/Ryujinx.Graphics.Gpu/Shader/Cache/CacheManager.cs
+++ b/Ryujinx.Graphics.Gpu/Shader/Cache/CacheManager.cs
@@ -1,9 +1,7 @@
using Ryujinx.Common;
-using Ryujinx.Common.Configuration;
using Ryujinx.Graphics.Gpu.Shader.Cache.Definition;
using System;
using System.Collections.Generic;
-using System.IO;
namespace Ryujinx.Graphics.Gpu.Shader.Cache
{
@@ -31,6 +29,8 @@ namespace Ryujinx.Graphics.Gpu.Shader.Cache
/// </summary>
private const ulong GuestCacheVersion = 1759;
+ public bool IsReadOnly => _guestProgramCache.IsReadOnly || _hostProgramCache.IsReadOnly;
+
/// <summary>
/// Create a new cache manager instance
/// </summary>