diff --git a/source/function_patcher.cpp b/source/function_patcher.cpp index 33fa16e..7ad9779 100644 --- a/source/function_patcher.cpp +++ b/source/function_patcher.cpp @@ -31,12 +31,12 @@ static void writeDataAndFlushIC(CThread *thread, void *arg) { } bool PatchFunction(std::shared_ptr &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; }