Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- namespace Rlua {
- typedef void(__cdecl *Lua_getfield)(RLUAState lst, int index, const char *k);
- Lua_getfield rlua_getfield = (Lua_getfield)Retcheck::unprotect(aobscan::scan("\x55\x8B\xEC\x6A\x01\xFF\x75\x10", "xxxxxxxx"));
- typedef void(__cdecl *Lua_settop)(RLUAState lst, int index);
- Lua_settop rlua_settop = (Lua_settop)Retcheck::unprotect(aobscan::scan("\x55\x8B\xEC\x8B\x55\x0C\x85\xD2\x78\x38", "xxxxxxxxxx"));
- typedef void(__cdecl *Lua_pushstring)(RLUAState lst, const char *s);
- Lua_pushstring rlua_pushstring = (Lua_pushstring)aobscan::scan("\x55\x8B\xEC\x8B\x55\x0C\x85\xD2\x75\x0D", "xxxxxxxxxx");
- typedef void(__cdecl *Lua_pushvalue)(RLUAState lst, int index);
- Lua_pushvalue rlua_pushvalue = (Lua_pushvalue)Retcheck::unprotect(aobscan::scan("\x55\x8B\xEC\x56\xFF\x75\x0C\x8B\x75\x08\x56\xE8\x00\x00\x00\x00\x8B\x56\x1C\x83\xC4\x08", "xxxxxxxxxxxx????xxxxxx"));
- typedef int(__cdecl *Lua_pcall)(RLUAState lst, int nargs, int nresults, int errfunc);
- Lua_pcall rlua_pcall = (Lua_pcall)Retcheck::unprotect(aobscan::scan("\x55\x8B\xEC\x8B\x4D\x0C\x57\x8B\x7D\x08\xFF\x75\x10", "xxxxxxxxxxxxx"));//this is call aobs/signature, i will change the name soon :P
- typedef void(__cdecl *Lua_setfield)(RLUAState lst, int index, const char *k);
- Lua_setfield rlua_setfield = (Lua_setfield)Retcheck::unprotect(aobscan::scan("\x55\x8B\xEC\x83\xEC\x10\x53\x56\x8B\x75\x08\x57\xFF\x75\x0C\x56\xE8\x00\x00\x00\x00\x8B\x55\x10\x83\xC4\x08\x8B\xCA\x8B\xF8\x8D\x59\x01\x8A\x01\x41\x84\xC0\x75\xF9\x2B\xCB\x51\x52\x56\xE8\x00\x00\x00\x00\x89\x45\xF0", "xxxxxxxxxxxxxxxxx????xxxxxxxxxxxxxxxxxxxxxxxxxx????xxx"));
- typedef void(__cdecl *Lua_pushnumber)(RLUAState lst, double n);
- Lua_pushnumber rlua_pushnumber = (Lua_pushnumber)Retcheck::unprotect(aobscan::scan("\x55\x8B\xEC\x8B\x4D\x08\x0F\x28\x15", "xxxxxxxxx"));
- typedef const char*(__cdecl *Lua_ToLString)(RLUAState lst, int idx, size_t *len);
- Lua_ToLString rlua_toLstring = (Lua_ToLString)Retcheck::unprotect(aobscan::scan("\x55\x8B\xEC\x56\x8B\x75\x08\xB9\x00\x00\x00\x00\x66\xFF\x46\x34", "xxxxxxxx????xxxx"));
- typedef bool(__cdecl *Lua_toBoolean)(RLUAState lst, int idx);
- Lua_toBoolean rlua_toBool = (Lua_toBoolean)Retcheck::unprotect(aobscan::scan("\x55\x8B\xEC\xFF\x75\x0C\xFF\x75\x08\xE8\x00\x00\x00\x00\x83\xC4\x08\x8B\x48\x08\x85\xC9", "xxxxxxxxxx????xxxxxxxx"));
- typedef int(__cdecl *Lua_tonumber)(RLUAState lst, int idx);
- Lua_tonumber rlua_tonumber = (Lua_tonumber)Retcheck::unprotect(aobscan::scan("\x55\x8B\xEC\x83\xEC\x10\xFF\x75\x0C\xFF\x75\x08\xE8", "xxxxxxxxxxxxx"));
- typedef int(__cdecl *Lua_type)(RLUAState lst, int idx, bool type);
- Lua_type rlua_type = (Lua_type)Retcheck::unprotect(aobscan::scan("\x55\x8B\xEC\xFF\x75\x0C\xFF\x75\x08\xE8\x00\x00\x00\x00\x83\xC4\x08\x3D\x00\x00\x00\x00\x75\x05", "xxxxxxxxxx????xxxx????xx"));
- typedef int(__cdecl *Lua_next)(RLUAState lst, int idx);
- Lua_next rlua_next = (Lua_next)Retcheck::unprotect(aobscan::scan("\x55\x8B\xEC\x83\xEC\x18\x56\x8B\x75\x08\x57\xFF\x75\x0C", "xxxxxxxxxxxxxx"));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement