mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-04 05:51:27 +12:00
Fix embedded spu elf patching
This commit is contained in:
parent
e485c9c79c
commit
746615a937
1 changed files with 2 additions and 2 deletions
|
@ -394,13 +394,13 @@ std::size_t patch_engine::apply_patch(const std::string& name, u8* dst, u32 file
|
||||||
|
|
||||||
if constexpr (check_local_storage)
|
if constexpr (check_local_storage)
|
||||||
{
|
{
|
||||||
offset -= ls_addr;
|
|
||||||
|
|
||||||
if (offset < ls_addr || offset >= (ls_addr + filesz))
|
if (offset < ls_addr || offset >= (ls_addr + filesz))
|
||||||
{
|
{
|
||||||
// This patch is out of range for this segment
|
// This patch is out of range for this segment
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
offset -= ls_addr;
|
||||||
}
|
}
|
||||||
|
|
||||||
auto ptr = dst + offset;
|
auto ptr = dst + offset;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue