rentzsch / mach_star

code injection and function overriding for Mac OS X
254 stars 46 forks source link

A few fixes, including compatibility with Rogue Amoeba's Instant On. #22

Closed lapcat closed 12 years ago

lapcat commented 12 years ago

1) Comment out testSystemFunctionOverrideByName, because it doesn't compile.

2) Fix test so that it works on Mac OS X 10.7 Lion.

3) Allow mach_override to patch and relocate code that has already been patched or might otherwise contain relative jmp instructions. This fixes incompatibility with Rogue Amoeba's Instant On component.

rentzsch commented 12 years ago

Thanks for the fixes! The testing stuff fell into disrepair when Apple broke unit testing for folks in Central Time Zone (no kidding) and I haven't gone back and fixed it yet. Ideally I'd have one project that could test 10.3 PPC through 10.7 x86-64, but that may be way too ambitious.

lapcat commented 12 years ago

I heard about the Central time thing but didn't experience it myself. I should write some unit tests someday. ;-)