Today I am back with an updated substrate.h file.
Most of you may know that you include this header into an MSHook tweak/patcher.
I tried creating a Mod Menu (to no avail), and even though it was never going to work, I managed to overcome a problem involving ARC compatibility.
Here is the error I received:
Cast of an Objective-C pointer to 'char *' is disallowed with ARC
If any of you have ever received this error, I will show you how you can fix it.
By downloading my updated substrate.h!
Requirements:
- THEOS
- iFile/Filza/iFunBox/DiskAid or any File Management Tool
Features:
- Fixes ARC incompatibility
- (it's not a hack, so there aren't any more features)
Instructions:
1. Download the new substrate.h file from the link below
2. Navigate to /var/theos/include
3. Backup your original substrate.h file (keep it somewhere safe)
4. Paste the new substrate.h file into the folder
5. Enjoy your ARC compatibility!
Download:
[Hidden Content]
Credits:
Goggwell (for fixing the problem)
JonasGessner (for his detailed and easy-to-follow tip on substrate.h and for his awesome header file! / https://github.com/JonasGessner)
Rob Mayoff [for his tip on pointer initialization (he posted an answer on this StackOverflow topic: http://stackoverflow.com/questions/10452109/using-reinterpret-cast-with-arc-enabled)]
Cheaters, I have a special surprise for you in the Cheater forum