Use the function patcher module for the plugin function patches

This commit is contained in:
Maschell
2020-06-13 16:57:53 +02:00
parent 4aeeb09901
commit ce73ac48e0
9 changed files with 25 additions and 485 deletions

View File

@@ -18,11 +18,12 @@
#include <wups.h>
#include <string>
#include <function_patcher/fpatching_defines.h>
class FunctionData {
public:
FunctionData(void *paddress, void *vaddress, const std::string &name, wups_loader_library_type_t library, void *replaceAddr, void *replaceCall) {
FunctionData(void *paddress, void *vaddress, const std::string &name, function_replacement_library_type_t library, void *replaceAddr, void *replaceCall) {
this->paddress = paddress;
this->vaddress = vaddress;
this->name = name;
@@ -39,7 +40,7 @@ public:
return this->name;
}
wups_loader_library_type_t getLibrary() const {
function_replacement_library_type_t getLibrary() const {
return this->library;
}
@@ -63,7 +64,7 @@ private:
void *paddress = NULL;
void *vaddress = NULL;
std::string name;
wups_loader_library_type_t library;
function_replacement_library_type_t library;
void *replaceAddr = NULL;
void *replaceCall = NULL;
};