plist ファイルからの読み取りに助けが必要です。これは私のコードですが、機能しておらず、もうアイデアがありません。この plist com.mi.pp1.plist の整数を読み取る dylib を構築したいと考えています。
Bux = [[[NSDictionary dictionaryWithContentsOfFile:@"/var/mobile/Library/Preferences/com.mi.pp1.plist"]valueForKey:@"kBux"]intValue];
%hook PPPlayerData
- (int)bux
{
return Bux;
}
%end