| 3831 | } |
| 3832 | |
| 3833 | static int internal_patchMemory(lua_State *L) |
| 3834 | { |
| 3835 | void *dest = checkaddr(L, 1); |
| 3836 | void *src = checkaddr(L, 2); |
| 3837 | int size = luaL_checkint(L, 3); |
| 3838 | if (size < 0) luaL_argerror(L, 1, "negative size"); |
| 3839 | bool ok = Core::getInstance().p->patchMemory(dest, src, size); |
| 3840 | lua_pushboolean(L, ok); |
| 3841 | return 1; |
| 3842 | } |
| 3843 | |
| 3844 | static int internal_patchBytes(lua_State *L) |
| 3845 | { |
nothing calls this directly
no test coverage detected