Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int (*old_get_Gems)(void *instance);
- int new_get_Gems(void *instance) {
- return 9999;
- }
- void initMethods() {
- Methods["InventoryData::get_Gems"] = (uintptr_t) Il2CppGetMethodOffset("Assembly-CSharp.dll", "StickWar3.Data", "InventoryData", "get_Gems");
- }
- void initHooks() {
- DobbyHook((void *)Methods["InventoryData::get_Gems"], (void *)new_get_Gems, (void **)&old_get_Gems)
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement