mirror of
https://github.com/wiiu-env/FunctionPatcherModule.git
synced 2025-01-06 23:28:14 +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) {
|
||||
// The addresses of a function might change every time with run another application.
|
||||
if (!patchedFunction->updateFunctionAddresses()) {
|
||||
if (patchedFunction->isPatched) {
|
||||
return true;
|
||||
}
|
||||
|
||||
if (patchedFunction->isPatched) {
|
||||
// The addresses of a function might change every time with run another application.
|
||||
if (!patchedFunction->updateFunctionAddresses()) {
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user