VERY experimental Nintendo Switch 2 emulator
C++
Merge pull request #4521 from lioncash/optionalcache
bunnei7401b78840e0
diff --cc src/video_core/renderer_opengl/gl_shader_disk_cache.cppindex 52fbab3c11,4f3c47c41b..40c0877c1c--- a/src/video_core/renderer_opengl/gl_shader_disk_cache.cpp+++ b/src/video_core/renderer_opengl/gl_shader_disk_cache.cpp@@@ -214,10 -214,10 +214,10 @@@ std::optional<std::vector<ShaderDiskCac// Skip games without title idconst bool has_title_id = system.CurrentProcess()->GetTitleID() != 0;if (!Settings::values.use_disk_shader_cache.GetValue() || !has_title_id) {- return {};+ return std::nullopt;}- FileUtil::IOFile file(GetTransferablePath(), "rb");+ Common::FS::IOFile file(GetTransferablePath(), "rb");if (!file.IsOpen()) {LOG_INFO(Render_OpenGL, "No transferable shader cache found");is_usable = true;