More optimization.
This commit is contained in:
@ -8,7 +8,7 @@ namespace Utils
|
||||
class Hook
|
||||
{
|
||||
public:
|
||||
Hook() : Place(nullptr), Stub(nullptr), Initialized(false), Installed(false), UseJump(false), Protection(0) { ZeroMemory(Hook::Buffer, sizeof(Hook::Buffer)); }
|
||||
Hook() : Place(nullptr), Stub(nullptr), Initialized(false), Installed(false), Original(0), UseJump(false), Protection(0) { ZeroMemory(Hook::Buffer, sizeof(Hook::Buffer)); }
|
||||
Hook(void* place, void* stub, bool useJump = true) : Hook() { Hook::Initialize(place, stub, useJump); }
|
||||
Hook(DWORD place, void* stub, bool useJump = true) : Hook(reinterpret_cast<void*>(place), stub, useJump) {}
|
||||
Hook(DWORD place, DWORD stub, bool useJump = true) : Hook(reinterpret_cast<void*>(place), reinterpret_cast<void*>(stub), useJump) {}
|
||||
|
@ -24,8 +24,8 @@ namespace Utils
|
||||
{
|
||||
public:
|
||||
InfoString() {};
|
||||
InfoString(std::string buffer) :InfoString() { this->Parse(buffer); };
|
||||
InfoString(const InfoString &obj) { this->KeyValuePairs = obj.KeyValuePairs; };
|
||||
InfoString(std::string buffer) : InfoString() { this->Parse(buffer); };
|
||||
InfoString(const InfoString &obj) : KeyValuePairs(obj.KeyValuePairs) {};
|
||||
|
||||
void Set(std::string key, std::string value);
|
||||
std::string Get(std::string key);
|
||||
|
Reference in New Issue
Block a user