mirror of
https://github.com/wiiu-env/FunctionPatcherModule.git
synced 2024-06-01 08:58:48 +02:00
Check if the function is already patched before updating the addresses
This commit is contained in:
parent
7bf7df5e87
commit
70a8726b69
|
@ -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