mirror of
https://github.com/wiiu-env/FunctionPatcherModule.git
synced 2025-01-08 08:00:46 +01:00
Check if the function is already patched before updating the addresses
This commit is contained in:
parent
f94b857f12
commit
182c6d2f92
@ -31,12 +31,12 @@ static void writeDataAndFlushIC(CThread *thread, void *arg) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
bool PatchFunction(std::shared_ptr<PatchedFunctionData> &patchedFunction) {
|
bool PatchFunction(std::shared_ptr<PatchedFunctionData> &patchedFunction) {
|
||||||
// The addresses of a function might change every time with run another application.
|
if (patchedFunction->isPatched) {
|
||||||
if (!patchedFunction->updateFunctionAddresses()) {
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (patchedFunction->isPatched) {
|
// The addresses of a function might change every time with run another application.
|
||||||
|
if (!patchedFunction->updateFunctionAddresses()) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user