fix: some round messages doesn't get handled.
misc: cosmetic changes.
This commit is contained in:
parent
ee3f9e7538
commit
6b8f8db4de
6 changed files with 23 additions and 32 deletions
|
|
@ -90,10 +90,6 @@ public:
|
|||
hookedBytes_ = makeUnique <uint8 []> (CodeLength);
|
||||
}
|
||||
|
||||
~SimpleHook () {
|
||||
disable ();
|
||||
}
|
||||
|
||||
public:
|
||||
bool patch (void *address, void *replacement) {
|
||||
constexpr uint16 jmp = 0x25ff;
|
||||
|
|
|
|||
|
|
@ -59,7 +59,7 @@ public:
|
|||
#if defined (CR_WINDOWS)
|
||||
handle_ = LoadLibraryA (file.chars ());
|
||||
#else
|
||||
handle_ = dlopen (file.chars (), RTLD_LAZY);
|
||||
handle_ = dlopen (file.chars (), RTLD_NOW | RTLD_DEEPBIND | RTLD_LOCAL);
|
||||
#endif
|
||||
return handle_ != nullptr;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue