mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-08 07:51:28 +12: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...");
|
dlg->Create("Preloading cached shaders from disk.\nPlease wait...");
|
||||||
});
|
});
|
||||||
|
|
||||||
|
const auto prefix_length = version_prefix.length();
|
||||||
u32 processed = 0;
|
u32 processed = 0;
|
||||||
while (root.read(tmp) && !Emu.IsStopped())
|
while (root.read(tmp) && !Emu.IsStopped())
|
||||||
{
|
{
|
||||||
if (tmp.name == "." || tmp.name == "..")
|
if (tmp.name == "." || tmp.name == "..")
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
if (tmp.name.compare(0, prefix_length, version_prefix) != 0)
|
||||||
|
continue;
|
||||||
|
|
||||||
std::vector<u8> bytes;
|
std::vector<u8> bytes;
|
||||||
fs::file f(directory_path + "/" + tmp.name);
|
fs::file f(directory_path + "/" + tmp.name);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue