static bool Debug_ = false;
static bool UIDebug_ = false;
static bool Engineer_ = false;
-static bool SummerBoard_ = true;
+static bool SummerBoard_ = false;
static bool SpringBoard_;
static UIImage *(*_UIApplicationImageWithName)(NSString *name);
if (NSDictionary *settings = [NSDictionary dictionaryWithContentsOfFile:[NSString stringWithFormat:@"/User/Library/Preferences/com.saurik.WinterBoard.plist"]]) {
if (NSNumber *value = [settings objectForKey:@"SummerBoard"])
SummerBoard_ = [value boolValue];
+ else
+ SummerBoard_ = true;
+
if (NSNumber *value = [settings objectForKey:@"Debug"])
Debug_ = [value boolValue];
if (NSNumber *value = [settings objectForKey:@"RecordUI"])
- (id) initForContentSize:(CGSize)size {
if ((self = [super initForContentSize:size]) != nil) {
_plist = [[NSString stringWithFormat:@"%@/Library/Preferences/com.saurik.WinterBoard.plist", NSHomeDirectory()] retain];
- _settings = [([NSMutableDictionary dictionaryWithContentsOfFile:_plist] ?: [NSMutableDictionary dictionary]) retain];
+ _settings = [NSMutableDictionary dictionaryWithContentsOfFile:_plist];
+
+ bool set;
+ if (_settings != nil)
+ set = true;
+ else {
+ set = false;
+ _settings = [NSMutableDictionary dictionary];
+ }
+
+ _settings = [_settings retain];
+
+ if (set && [_settings objectForKey:@"SummerBoard"] == nil)
+ [_settings setObject:[NSNumber numberWithBool:YES] forKey:@"SummerBoard"];
[_settings setObject:[NSNumber numberWithBool:IsIconHiddenDisplayId(WinterBoardDisplayID)] forKey:@"IconHidden"];
} return self;