I want to put the scope and address information of a class and a function in the symbol of MSHookFunction at the same time. Of course, if you leave it like this, you will get an error, but like this: Tweak.xm #include "Item.h" #include "ItemInstance.h" #include "Recipes.h" void (*Recipes_init)(Recipes*); void _Recipes_init(Recipes* res) { Recipes_init(res); const std::vector<Recipes::Type, std::allocator<Recipes::Type>>& def = definition<Item*, Item*>('#', Item::mItems[296], 'S', Item::mItems[368]); res->addShapedRecipe(ItemInstance(Item::mItems[432], 0), "###", "#S#", "###", def); } %ctor { MSHookFunction(Recipes::_init + (0x100774f40 + _dyld_get_image_vmaddr_slide(0)), (void*)&_Recipes_init, (void**)&_Recipes_init); MSHookFunction(Recipes::addShapedRecipe + (0x100781d74 + _dyld_get_image_vmaddr_slide(0)), NULL, NULL); MSHookFunction(Item::mItems + (0x10074689c + _dyld_get_image_vmaddr_slide(0)), NULL, NULL); MSHookFunction(ItemInstance::ItemInstance + (0x1007569a4 + _dyld_get_image_vmaddr_slide(0)), NULL, NULL); } Recipes.h #pragma once #include <memory> #include <string> #include <vector> #include <stdint.h> #include "ItemInstance.h" class Recipes { public: class Type { public: Item* item; uintptr_t* block; ItemInstance inst; char c; }; public: void _init(); void addShapedRecipe(const ItemInstance&, const std::string&, const std::string&, const std::string&, const std::vector<Recipes::Type, std::allocator<Recipes::Type>>&); }; template <class A, class B> std::vector<Recipes::Type, std::allocator<Recipes::Type>> definition(char, A, char, B); ItemInstance.h #pragma once #include <memory> #include "Item.h" class ItemInstance { public: ItemInstance(Item const*, int); }; Item.h #pragma once #include <string> #include <memory> #include <vector> #include <unordered_map> class Item { public: char filler[200]; public: static Item* mItems[512]; };
from iOSGods RSS Feed https://ift.tt/3fzVAfh
Subscribe to:
Post Comments (Atom)
-
Yubo Yoti bypass Requirements: Yubo app Jailbroken iPhone Apps Manager Brain Steps: Open Apps Manager Locate Yubo in Apps Manager and open i...
-
Modded/Hacked App: Simply Guitar by JoyTunes by JoyTunes Bundle ID: com.joytunes.SimplyGuitar iTunes Store Link: https://ift.tt/2ANDd7d Mod ...
-
I don't know how this happened, i was trying to install Kinemaster modded version on my iPhone 7 running iOS 14.0.1, maybe it's beca...
-
Hey everyone I am running Ipad 6th generation running ios 14.0 32 gb capacity with 19.1 gb left I used sideloadly yesterday to install an ap...
-
Hello! I am using this for practice using a dummy Snapchat account I've made and created a My Eyes Only tab. Now, if you don't know ...
-
Hello, does anyone know why I cannot use my Apple password or password from apple servers? Sideloadly version 0.16.1 Checking iOS version......
-
As the title says upon installing Last Day on Earth with sideloadly i get this error ERROR: Guru Meditation 6020bc@89:f11511 Call to np_clie...
-
Hello friends, So I have a problem with Sideloadly, I installed it on my (32x bit Windows 7) laptop (SONY) and tried opening it, but when I ...
-
Hello, I am currently running with an iPhone XR on IOS 12.2. I am trying to install ipa files through cydia impactor but keep receiving this...
-
Netflix is now offering users a chance to win a free subscription for 83 years. The company calls it the “immortal” Netflix account. T...
No comments:
Post a Comment