Last active
August 29, 2015 14:10
-
-
Save streeter/c443eeab17683213a9ee to your computer and use it in GitHub Desktop.
Fix running Chrome on Mac OS 10.10.2 (14C68m)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
patch.dylib |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
clang -dynamiclib -framework AppKit patch.m -o patch.dylib |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#import <AppKit/AppKit.h> | |
__attribute((constructor)) void Patch_10_10_2_entry() | |
{ | |
NSLog(@"10.10.2 patch loaded"); | |
} | |
@interface NSTouch () | |
- (id)_initWithPreviousTouch:(NSTouch *)touch newPhase:(NSTouchPhase)phase position:(CGPoint)position isResting:(BOOL)isResting force:(double)force; | |
@end | |
@implementation NSTouch (Patch_10_10_2) | |
- (id)_initWithPreviousTouch:(NSTouch *)touch newPhase:(NSTouchPhase)phase position:(CGPoint)position isResting:(BOOL)isResting | |
{ | |
return [self _initWithPreviousTouch:touch newPhase:phase position:position isResting:isResting force:0]; | |
} | |
@end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
env DYLD_INSERT_LIBRARIES=./patch.dylib "/Applications/Google Chrome.app/Contents/MacOS/Google Chrome" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Wow that looks a lot like: https://gist.github.com/preillyme/ec95e4d7bed9893c67a9