LLVM: compress PPU cache

Compress PPU modules to .gz (backward compatible with uncompressed cache)
This commit is contained in:
Nekotekina 2019-12-27 22:50:14 +03:00
parent e54438d3a7
commit 70e26eeb45
2 changed files with 84 additions and 3 deletions

View file

@ -1617,7 +1617,7 @@ extern void ppu_initialize(const ppu_module& info)
}
// Check object file
if (fs::is_file(cache_path + obj_name))
if (fs::is_file(cache_path + obj_name + ".gz") || fs::is_file(cache_path + obj_name))
{
if (!jit)
{
@ -1657,7 +1657,7 @@ extern void ppu_initialize(const ppu_module& info)
g_progr_pdone++;
}
if (Emu.IsStopped() || !jit || !fs::is_file(cache_path + obj_name))
if (Emu.IsStopped() || !jit || !fs::is_file(cache_path + obj_name + ".gz"))
{
return;
}