GS/Vulkan: Actually disable shader cache when requested

This commit is contained in:
Stenzek 2023-03-05 17:22:40 +10:00 committed by refractionpcsx2
parent 5b88e637d8
commit b453a6a46d
2 changed files with 3 additions and 2 deletions

View File

@ -597,7 +597,7 @@ bool GSRunner::ParseCommandLineArgs(int argc, char* argv[], VMBootParameters& pa
else if (CHECK_ARG("-noshadercache"))
{
Console.WriteLn("Disabling shader cache");
s_settings_interface.SetBoolValue("EmuCore/GS", "disable_shader_cache", false);
s_settings_interface.SetBoolValue("EmuCore/GS", "disable_shader_cache", true);
continue;
}
else if (CHECK_ARG("-window"))

View File

@ -294,7 +294,8 @@ bool VulkanHostDisplay::CreateDevice(const WindowInfo& wi, VsyncMode vsync)
bool VulkanHostDisplay::SetupDevice()
{
Vulkan::ShaderCache::Create(EmuFolders::Cache, SHADER_CACHE_VERSION, EmuConfig.GS.UseDebugDevice);
Vulkan::ShaderCache::Create(EmuConfig.GS.DisableShaderCache ? std::string_view() : std::string_view(EmuFolders::Cache),
SHADER_CACHE_VERSION, EmuConfig.GS.UseDebugDevice);
return true;
}