mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-04-20 03:24:49 +00:00
Cheats/Patches: Fix Mask Offset (#2323)
This commit is contained in:
parent
56b2f6c4cf
commit
8d4261efba
1 changed files with 4 additions and 3 deletions
|
@ -174,7 +174,7 @@ void OnGameLoaded() {
|
|||
patchMask = MemoryPatcher::PatchMask::Mask_Jump32;
|
||||
|
||||
MemoryPatcher::PatchMemory(currentPatchName, address, patchValue, false,
|
||||
littleEndian, patchMask);
|
||||
littleEndian, patchMask, maskOffsetValue);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -278,6 +278,7 @@ void OnGameLoaded() {
|
|||
lineObject["Type"] = attributes.value("Type").toString();
|
||||
lineObject["Address"] = attributes.value("Address").toString();
|
||||
lineObject["Value"] = attributes.value("Value").toString();
|
||||
lineObject["Offset"] = attributes.value("Offset").toString();
|
||||
linesArray.append(lineObject);
|
||||
}
|
||||
}
|
||||
|
@ -321,7 +322,7 @@ void OnGameLoaded() {
|
|||
|
||||
MemoryPatcher::PatchMemory(currentPatchName, address.toStdString(),
|
||||
patchValue.toStdString(), false,
|
||||
littleEndian, patchMask);
|
||||
littleEndian, patchMask, maskOffsetValue);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -447,4 +448,4 @@ uintptr_t PatternScan(const std::string& signature) {
|
|||
return 0;
|
||||
}
|
||||
|
||||
} // namespace MemoryPatcher
|
||||
} // namespace MemoryPatcher
|
||||
|
|
Loading…
Add table
Reference in a new issue