mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-04-20 11:36:13 +00:00
rsx: Fix shader cache version check
This commit is contained in:
parent
b2a7eee1ec
commit
8b4836a12f
1 changed files with 4 additions and 0 deletions
|
@ -333,12 +333,16 @@ namespace rsx
|
|||
dlg->Create("Preloading cached shaders from disk.\nPlease wait...");
|
||||
});
|
||||
|
||||
const auto prefix_length = version_prefix.length();
|
||||
u32 processed = 0;
|
||||
while (root.read(tmp) && !Emu.IsStopped())
|
||||
{
|
||||
if (tmp.name == "." || tmp.name == "..")
|
||||
continue;
|
||||
|
||||
if (tmp.name.compare(0, prefix_length, version_prefix) != 0)
|
||||
continue;
|
||||
|
||||
std::vector<u8> bytes;
|
||||
fs::file f(directory_path + "/" + tmp.name);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue