Jump to content

Updated substrate.h (ARC compatible)


29 posts in this topic

Recommended Posts

Posted

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

React or reply to this topic to see the hidden content & download link. 👀


 


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 :)


  • Like 16
  • Winner 2
  • Thanks 4
  • Haha 1

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...

Important Information

We would like to place cookies on your device to help make this website better. The website cannot give you the best user experience without cookies. You can accept or decline our cookies. You may also adjust your cookie settings. Privacy Policy - Guidelines