mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-05-14 08:12:16 +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;
|
patchMask = MemoryPatcher::PatchMask::Mask_Jump32;
|
||||||
|
|
||||||
MemoryPatcher::PatchMemory(currentPatchName, address, patchValue, false,
|
MemoryPatcher::PatchMemory(currentPatchName, address, patchValue, false,
|
||||||
littleEndian, patchMask);
|
littleEndian, patchMask, maskOffsetValue);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -278,6 +278,7 @@ void OnGameLoaded() {
|
||||||
lineObject["Type"] = attributes.value("Type").toString();
|
lineObject["Type"] = attributes.value("Type").toString();
|
||||||
lineObject["Address"] = attributes.value("Address").toString();
|
lineObject["Address"] = attributes.value("Address").toString();
|
||||||
lineObject["Value"] = attributes.value("Value").toString();
|
lineObject["Value"] = attributes.value("Value").toString();
|
||||||
|
lineObject["Offset"] = attributes.value("Offset").toString();
|
||||||
linesArray.append(lineObject);
|
linesArray.append(lineObject);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -321,7 +322,7 @@ void OnGameLoaded() {
|
||||||
|
|
||||||
MemoryPatcher::PatchMemory(currentPatchName, address.toStdString(),
|
MemoryPatcher::PatchMemory(currentPatchName, address.toStdString(),
|
||||||
patchValue.toStdString(), false,
|
patchValue.toStdString(), false,
|
||||||
littleEndian, patchMask);
|
littleEndian, patchMask, maskOffsetValue);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue