Patch: add floating point support

Also count applied entries
This commit is contained in:
Nekotekina 2017-07-17 16:34:04 +03:00
parent e39ee10105
commit f91f2e3e6d
4 changed files with 53 additions and 12 deletions

View file

@ -135,15 +135,15 @@ void sys_spu_image::deploy(u32 loc)
}
// Apply the patch
fxm::check_unlocked<patch_engine>()->apply(hash, vm::g_base_addr + loc);
auto applied = fxm::check_unlocked<patch_engine>()->apply(hash, vm::g_base_addr + loc);
if (!Emu.GetTitleID().empty())
{
// Alternative patch
fxm::check_unlocked<patch_engine>()->apply(Emu.GetTitleID() + '-' + hash, vm::g_base_addr + loc);
applied += fxm::check_unlocked<patch_engine>()->apply(Emu.GetTitleID() + '-' + hash, vm::g_base_addr + loc);
}
LOG_NOTICE(LOADER, "Loaded SPU image: %s%s", hash, dump);
LOG_NOTICE(LOADER, "Loaded SPU image: %s (<- %u)%s", hash, applied, dump);
}
error_code sys_spu_initialize(u32 max_usable_spu, u32 max_raw_spu)