Clean up and formatting

This commit is contained in:
Maschell
2020-12-26 14:17:50 +01:00
parent 0467178650
commit e9bd4651ca
30 changed files with 283 additions and 325 deletions

View File

@@ -33,45 +33,43 @@ public:
this->replaceCall = replaceCall;
}
~FunctionData() {
~FunctionData() = default;
}
const std::string &getName() const {
[[nodiscard]] const std::string &getName() const {
return this->name;
}
function_replacement_library_type_t getLibrary() const {
[[nodiscard]] function_replacement_library_type_t getLibrary() const {
return this->library;
}
const void *getPhysicalAddress() const {
[[nodiscard]] const void *getPhysicalAddress() const {
return paddress;
}
const void *getVirtualAddress() const {
[[nodiscard]] const void *getVirtualAddress() const {
return vaddress;
}
const void *getReplaceAddress() const {
[[nodiscard]] const void *getReplaceAddress() const {
return replaceAddr;
}
const void *getReplaceCall() const {
[[nodiscard]] const void *getReplaceCall() const {
return replaceCall;
}
const FunctionPatcherTargetProcess getTargetProcess() const {
[[nodiscard]] FunctionPatcherTargetProcess getTargetProcess() const {
return targetProcess;
}
private:
void *paddress = NULL;
void *vaddress = NULL;
void *paddress = nullptr;
void *vaddress = nullptr;
std::string name;
function_replacement_library_type_t library;
FunctionPatcherTargetProcess targetProcess;
void *replaceAddr = NULL;
void *replaceCall = NULL;
void *replaceAddr = nullptr;
void *replaceCall = nullptr;
};