Created
December 22, 2021 13:24
-
-
Save PoomSmart/cb80c49afc003e72018bb5635593f584 to your computer and use it in GitHub Desktop.
Revisions
-
PoomSmart created this gist
Dec 22, 2021 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,14 @@ void (*YTPlayerLogPVC)(NSString *, ...); %hookf(void, YTPlayerLogPVC, NSString *format, ...) { va_list args; va_start(args, format); NSLogv(format, args); va_end(args); } %ctor { NSString *frameworkPath = [NSString stringWithFormat:@"%@/Frameworks/Module_Framework.framework/Module_Framework", NSBundle.mainBundle.bundlePath]; MSImageRef ref = MSGetImageByName([frameworkPath UTF8String]); YTPlayerLogPVC = MSFindSymbol(ref, "_YTPlayerLogPVC"); %init; }