mirror of
https://github.com/0O0o0oOoO00/Alas.git
synced 2026-05-21 21:39:28 +08:00
add: migrate source code of luahook
This commit is contained in:
16
blcrack/cracker/Dobby/source/InterceptEntry.cpp
Normal file
16
blcrack/cracker/Dobby/source/InterceptEntry.cpp
Normal file
@@ -0,0 +1,16 @@
|
||||
#include "InterceptEntry.h"
|
||||
#include "Interceptor.h"
|
||||
|
||||
InterceptEntry::InterceptEntry(InterceptEntryType type, addr_t address) {
|
||||
this->type = type;
|
||||
|
||||
#if defined(TARGET_ARCH_ARM)
|
||||
if (address % 2) {
|
||||
address -= 1;
|
||||
this->thumb_mode = true;
|
||||
}
|
||||
#endif
|
||||
|
||||
this->patched_addr = address;
|
||||
this->id = Interceptor::SharedInstance()->count();
|
||||
}
|
||||
Reference in New Issue
Block a user