Jump to content

8 posts in this topic

Recommended Posts

Posted

"there was an error loading the preference bundle for XXX"

 

I re-installed the .deb

tweaked makefile and add ARCHS = armv7 arm64 at the top, moved XXXBundle.plist to /Library/PreferenceLoader/Preferences/

but nothing helped, Is there any other solutions for this problem? :(

Posted (edited)

want to see your code

Tweak.xm

 

#define PLIST_PATH @"/var/mobile/Library/Preferences/KrikkerBundle.plist"

inline bool GetPrefBool(NSString *key)
{
return [[[NSDictionary dictionaryWithContentsOfFile:PLIST_PATH] valueForKey:key] boolValue];
}
 
%hook KikUser
- (BOOLisVerified {
if(GetPrefBool(@"kVerified")) {
return true;
}
return %orig;
}
%end
 
Bundle.mm
 
#import "KrikkerBundle.h"
 
 
@implementation KrikkerBundleListController
- (id)specifiers {
if(_specifiers == nil) {
_specifiers = [[self loadSpecifiersFromPlistName:@"KrikkerBundle" target:self] retain];
}
return _specifiers;
}
@end
 
// vim:ft=objc
 
Bunddle.h
 
#import <Preferences/Preferences.h>
@interface KrikkerBundleListController: PSListController {
}
@end

 
Bundle.plist 
 
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com...yList-1.0.dtd">
<plist version="1.0">
<dict>
    <key>entry</key>
        <dict>
            <key>cell</key>
                <string>PSLinkCell</string>
            <key>icon</key>
                <string>icon</string>
            <key>label</key>
                <string>Krikker</string>
        </dict>
    <key>items</key>
        <array>
            <dict>
                <key>cell</key>
                    <string>PSGroupCell</string>
                <key>label</key>
                    <string>Krikker!</string>
            </dict>
            <dict>
                <key>cell</key>
                    <string>PSSwitchCell</string>
                <key>default</key>
                    <false/>
                <key>defaults</key>
                    <string>KrikkerBundle</string>
                <key>key</key>
                    <string>kVerified</string>
                <key>label</key>
                    <string>Verified</string>
            </dict>
        </array>
    <key>title</key>
        <string>Krikker</string>
</dict>
</plist>
Updated by Connorcious
Posted (edited)
%hook KikUser

- (BOOLisVerified {

if(GetPrefBool(@"kVerified")) {

return true;

}

return %orig;

}

%end

 

"-(BOOL)isVerified {"

 

 

and btw use patcher template by dida :)

Updated by Drag0nS
Posted

create a file xxx.h and put this in it #import <Preferences/Preferences.h>

@interface xxxListController: PSListController {               
}
@end
Posted

thanks for helping me guys :)

Mark a reply as solved. :)

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...

Important Information

We would like to place cookies on your device to help make this website better. The website cannot give you the best user experience without cookies. You can accept or decline our cookies. You may also adjust your cookie settings. Privacy Policy - Guidelines