Here you can get the already modified OSX Version.


In the original you'll have to insert:

#define fseek fseeko

#define ftell ftello

in here:


#if defined(APPLE) && defined(GNUC)

#define fopen64 fopen

<ol>
    <li><span class="caps">INSERT</span> IT <span class="caps">HERE</span><br/><br />



endif


to make it work in OSX :)

</ol><p><br/></p>
$ gcc o patch patchv2.c -D_LARGEFILE64_SOURCE

./patch somewiiimage.iso 0

[+] Seeking to 0×4E003

[
] First patch…….Done

] Seeking to 0×4E010

] Second patch…….[ Done

[
File Closed

Backup is now PAL

Comments