mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-08-30 14:22:32 +00:00
attempt to precompile with klic
This commit is contained in:
parent
4e08242074
commit
d6161eb3ec
1 changed files with 17 additions and 1 deletions
|
@ -4275,9 +4275,17 @@ extern void ppu_precompile(std::vector<std::string>& dir_queue, std::vector<ppu_
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!src && Emu.klic.size() > 0 && src.open(path))
|
||||||
|
{
|
||||||
|
src = decrypt_self(std::move(src), reinterpret_cast<u8*>(&Emu.klic[0]), nullptr, true);
|
||||||
|
}
|
||||||
|
|
||||||
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 +4467,17 @@ extern void ppu_precompile(std::vector<std::string>& dir_queue, std::vector<ppu_
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!src && Emu.klic.size() > 0 && src.open(path))
|
||||||
|
{
|
||||||
|
src = decrypt_self(std::move(src), reinterpret_cast<u8*>(&Emu.klic[0]), nullptr, true);
|
||||||
|
}
|
||||||
|
|
||||||
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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -4631,7 +4647,7 @@ extern void ppu_initialize()
|
||||||
}
|
}
|
||||||
|
|
||||||
// Avoid compilation if main's cache exists or it is a standalone SELF with no PARAM.SFO
|
// Avoid compilation if main's cache exists or it is a standalone SELF with no PARAM.SFO
|
||||||
if (compile_main && g_cfg.core.llvm_precompilation && !Emu.GetTitleID().empty() && !Emu.IsChildProcess())
|
if (compile_main && g_cfg.core.llvm_precompilation && !Emu.GetTitleID().empty())
|
||||||
{
|
{
|
||||||
// Try to add all related directories
|
// Try to add all related directories
|
||||||
const std::set<std::string> dirs = Emu.GetGameDirs();
|
const std::set<std::string> dirs = Emu.GetGameDirs();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue