cleanup
This commit is contained in:
parent
9fe8f9d2d8
commit
6df8b9f824
@ -20,9 +20,10 @@ HOOK (i32, HaspRead, PROC_ADDRESS ("hasp_windows_x64.dll", "hasp_read"), i32, i3
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
void (__fastcall* lua_touserdata) (i64 L, i64 index);
|
typedef i64 (__fastcall* lua_func) (u64, u64);
|
||||||
void (__fastcall* lua_settop) (i64 L, i64 index);
|
lua_func lua_touserdata;
|
||||||
void (__fastcall* lua_pushboolean) (i64 L, i64 b);
|
lua_func lua_settop;
|
||||||
|
lua_func lua_pushboolean;
|
||||||
|
|
||||||
HOOK (i64, sub_1401AC550, ASLR (0x1401AC550), i64 a1) {
|
HOOK (i64, sub_1401AC550, ASLR (0x1401AC550), i64 a1) {
|
||||||
lua_touserdata (a1, 4294957292);
|
lua_touserdata (a1, 4294957292);
|
||||||
@ -95,9 +96,9 @@ Init () {
|
|||||||
// Disable SSLVerify
|
// Disable SSLVerify
|
||||||
WRITE_MEMORY (ASLR (0x14034C182), u8, 0x00);
|
WRITE_MEMORY (ASLR (0x14034C182), u8, 0x00);
|
||||||
|
|
||||||
lua_touserdata = reinterpret_cast<void ((__fastcall*)(i64, i64))> (PROC_ADDRESS ("lua51.dll", "lua_touserdata"));
|
lua_touserdata = (lua_func) PROC_ADDRESS ("lua51.dll", "lua_touserdata");
|
||||||
lua_settop = reinterpret_cast<void ((__fastcall*)(i64, i64))> (PROC_ADDRESS ("lua51.dll", "lua_settop"));
|
lua_settop = (lua_func) PROC_ADDRESS ("lua51.dll", "lua_settop");
|
||||||
lua_pushboolean = reinterpret_cast<void ((__fastcall*)(i64, i64))> (PROC_ADDRESS ("lua51.dll", "lua_pushboolean"));
|
lua_pushboolean = (lua_func) PROC_ADDRESS ("lua51.dll", "lua_pushboolean");
|
||||||
|
|
||||||
INSTALL_HOOK (sub_1401AC550);
|
INSTALL_HOOK (sub_1401AC550);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user