mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-04-28 13:28:01 +03:00
PPU: Report encrypted modules with KLIC in main file, opportunistic compilation at exit-spawn (#16743)
Some checks are pending
Some checks are pending
This commit is contained in:
parent
b266e3d4bf
commit
af23df842d
1 changed files with 34 additions and 0 deletions
|
@ -4275,9 +4275,30 @@ extern void ppu_precompile(std::vector<std::string>& dir_queue, std::vector<ppu_
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!src && !Emu.klic.empty() && src.open(path))
|
||||||
|
{
|
||||||
|
src = decrypt_self(src, reinterpret_cast<u8*>(&Emu.klic[0]));
|
||||||
|
|
||||||
|
if (src)
|
||||||
|
{
|
||||||
|
ppu_log.error("Possible missed KLIC for precompilation of '%s', please report to developers.", path);
|
||||||
|
|
||||||
|
// Ignore executables larger than 500KB to prevent a long pause on exitspawn
|
||||||
|
if (src.size() >= 500000)
|
||||||
|
{
|
||||||
|
g_progr_ftotal_bits -= file_size;
|
||||||
|
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (!src)
|
if (!src)
|
||||||
{
|
{
|
||||||
ppu_log.notice("Failed to decrypt '%s'", path);
|
ppu_log.notice("Failed to decrypt '%s'", path);
|
||||||
|
|
||||||
|
g_progr_ftotal_bits -= file_size;
|
||||||
|
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -4459,9 +4480,22 @@ extern void ppu_precompile(std::vector<std::string>& dir_queue, std::vector<ppu_
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!src && !Emu.klic.empty() && src.open(path))
|
||||||
|
{
|
||||||
|
src = decrypt_self(src, reinterpret_cast<u8*>(&Emu.klic[0]));
|
||||||
|
|
||||||
|
if (src)
|
||||||
|
{
|
||||||
|
ppu_log.error("Possible missed KLIC for precompilation of '%s', please report to developers.", path);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (!src)
|
if (!src)
|
||||||
{
|
{
|
||||||
ppu_log.notice("Failed to decrypt '%s'", path);
|
ppu_log.notice("Failed to decrypt '%s'", path);
|
||||||
|
|
||||||
|
g_progr_ftotal_bits -= file_size;
|
||||||
|
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue