Fix regression from #9680
This commit is contained in:
Eladash 2021-01-30 18:05:02 +02:00 committed by GitHub
parent 6b3b06df25
commit 16c6b44f55
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2076,7 +2076,7 @@ extern void ppu_precompile(std::vector<std::string>& dir_queue, std::vector<lv2_
const std::string firmware_sprx_path = vfs::get("/dev_flash/sys/external/");
// Map fixed address executables area, fake overlay support
const bool had_ovl = !vm::map(0x3000'0000, 0x1000'0000, 0x200).operator bool();
const bool had_ovl = !vm::map(0x3000'0000, 0x1000'0000, 0x202).operator bool();
const u32 ppc_seg = std::exchange(g_ps3_process_info.ppc_seg, 0x3);
std::vector<std::pair<std::string, u64>> file_queue;
@ -2337,7 +2337,7 @@ extern void ppu_precompile(std::vector<std::string>& dir_queue, std::vector<lv2_
if (!had_ovl)
{
vm::unmap(0x3000'0000);
ensure(vm::unmap(0x3000'0000));
}
g_ps3_process_info.ppc_seg = ppc_seg;