-1

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
4

1 に答える 1

0
int Bux;

Bux = [[[NSDictionary dictionaryWithContentsOfFile:@"/var/mobile/Library/Preferences    /com.mi.pp1.plist"]objectForKey:@"kBux"]intValue];

%hook PPPlayerData
- (int)bux
{
return Bux;
}

作品

于 2013-03-07T16:58:47.843 に答える