got it working ffs
This commit is contained in:
parent
aad5421b3f
commit
dc4d7adb9c
67 changed files with 53 additions and 758 deletions
|
@ -6,5 +6,5 @@ Description: Customizable date under time in iX StatusBar.
|
|||
Maintainer: MPG13
|
||||
Author: MPG13
|
||||
Section: Tweaks
|
||||
Version: 1.2-29+debug
|
||||
Version: 1.2-38+debug
|
||||
Installed-Size: 188
|
||||
|
|
Binary file not shown.
|
@ -7,7 +7,7 @@
|
|||
<key>CFBundleExecutable</key>
|
||||
<string>UnderTime</string>
|
||||
<key>CFBundleIdentifier</key>
|
||||
<string>com.mpg13.UnderTime</string>
|
||||
<string>com.mpg13.undertime</string>
|
||||
<key>CFBundleInfoDictionaryVersion</key>
|
||||
<string>6.0</string>
|
||||
<key>CFBundlePackageType</key>
|
||||
|
@ -19,6 +19,6 @@
|
|||
<key>CFBundleVersion</key>
|
||||
<string>1.0</string>
|
||||
<key>NSPrincipalClass</key>
|
||||
<string>UnderTimeRootListController</string>
|
||||
<string>udtRootListController</string>
|
||||
</dict>
|
||||
</plist>
|
||||
|
|
|
@ -4,64 +4,49 @@
|
|||
<dict>
|
||||
<key>items</key>
|
||||
<array>
|
||||
<dict>
|
||||
<dict>
|
||||
<key>cell</key>
|
||||
<string>PSGroupCell</string>
|
||||
<key>footerCellClass</key>
|
||||
<string>UnderTimeCustomCell</string>
|
||||
<key>label</key>
|
||||
<string>UnderTime Settings</string>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>cell</key>
|
||||
<string>PSGroupCell</string>
|
||||
</dict>
|
||||
<dict>
|
||||
<dict>
|
||||
<key>cell</key>
|
||||
<string>PSSwitchCell</string>
|
||||
<key>default</key>
|
||||
<false/>
|
||||
<true/>
|
||||
<key>defaults</key>
|
||||
<string>com.mpg13.UnderTime</string>
|
||||
<string>com.mpg13.undertime</string>
|
||||
<key>key</key>
|
||||
<string>Enable</string>
|
||||
<key>label</key>
|
||||
<string>Enable</string>
|
||||
<string>Enable tweak</string>
|
||||
</dict>
|
||||
|
||||
<dict>
|
||||
<key>cell</key>
|
||||
<string>PSEditTextCell</string>
|
||||
<key>default</key>
|
||||
<string>d/M</string>
|
||||
<key>defaults</key>
|
||||
<string>com.mpg13.UnderTime</string>
|
||||
<string>com.mpg13.undertime</string>
|
||||
<key>key</key>
|
||||
<string>dformat</string>
|
||||
<key>showValue</key>
|
||||
<true/>
|
||||
</dict>
|
||||
<dict>
|
||||
<dict>
|
||||
<key>cell</key>
|
||||
<string>PSGroupCell</string>
|
||||
<key>label</key>
|
||||
<string>Forked from NeinZedd's "DateUnderTimeX". Thank him for his work!</string>
|
||||
</dict>
|
||||
<dict>
|
||||
<dict>
|
||||
<key>cell</key>
|
||||
<string>PSGroupCell</string>
|
||||
<key>footerText</key>
|
||||
<string>Updated by /u/-mpg13- || Original code by /u/NeinZedd9</string>
|
||||
<key>footerAlignment</key>
|
||||
<integer>1</integer>
|
||||
<key>label</key>
|
||||
<string>Use nsdateformatter.com to help you format your date!</string>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>action</key>
|
||||
<string>respring</string>
|
||||
<key>height</key>
|
||||
<string>38</string>
|
||||
<key>cell</key>
|
||||
<string>PSButtonCell</string>
|
||||
<key>label</key>
|
||||
<string>Respring</string>
|
||||
</dict>
|
||||
</array>
|
||||
<key>title</key>
|
||||
<string></string>
|
||||
<string>UnderTime</string>
|
||||
</dict>
|
||||
</plist>
|
||||
|
|
Binary file not shown.
|
@ -9,7 +9,7 @@
|
|||
<key>cell</key>
|
||||
<string>PSLinkCell</string>
|
||||
<key>detail</key>
|
||||
<string>UnderTimeRootListController</string>
|
||||
<string>udtRootListController</string>
|
||||
<key>icon</key>
|
||||
<string>icon.png</string>
|
||||
<key>isController</key>
|
||||
|
|
|
@ -1 +1 @@
|
|||
./packages/com.mpg13.undertime_1.2-29+debug_iphoneos-arm.deb
|
||||
./packages/com.mpg13.undertime_1.2-38+debug_iphoneos-arm.deb
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
<key>CFBundleExecutable</key>
|
||||
<string>UnderTime</string>
|
||||
<key>CFBundleIdentifier</key>
|
||||
<string>com.mpg13.UnderTime</string>
|
||||
<string>com.mpg13.undertime</string>
|
||||
<key>CFBundleInfoDictionaryVersion</key>
|
||||
<string>6.0</string>
|
||||
<key>CFBundlePackageType</key>
|
||||
|
@ -19,6 +19,6 @@
|
|||
<key>CFBundleVersion</key>
|
||||
<string>1.0</string>
|
||||
<key>NSPrincipalClass</key>
|
||||
<string>UnderTimeRootListController</string>
|
||||
<string>udtRootListController</string>
|
||||
</dict>
|
||||
</plist>
|
||||
|
|
|
@ -4,64 +4,49 @@
|
|||
<dict>
|
||||
<key>items</key>
|
||||
<array>
|
||||
<dict>
|
||||
<dict>
|
||||
<key>cell</key>
|
||||
<string>PSGroupCell</string>
|
||||
<key>footerCellClass</key>
|
||||
<string>UnderTimeCustomCell</string>
|
||||
<key>label</key>
|
||||
<string>UnderTime Settings</string>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>cell</key>
|
||||
<string>PSGroupCell</string>
|
||||
</dict>
|
||||
<dict>
|
||||
<dict>
|
||||
<key>cell</key>
|
||||
<string>PSSwitchCell</string>
|
||||
<key>default</key>
|
||||
<false/>
|
||||
<true/>
|
||||
<key>defaults</key>
|
||||
<string>com.mpg13.UnderTime</string>
|
||||
<string>com.mpg13.undertime</string>
|
||||
<key>key</key>
|
||||
<string>Enable</string>
|
||||
<key>label</key>
|
||||
<string>Enable</string>
|
||||
<string>Enable tweak</string>
|
||||
</dict>
|
||||
|
||||
<dict>
|
||||
<key>cell</key>
|
||||
<string>PSEditTextCell</string>
|
||||
<key>default</key>
|
||||
<string>d/M</string>
|
||||
<key>defaults</key>
|
||||
<string>com.mpg13.UnderTime</string>
|
||||
<string>com.mpg13.undertime</string>
|
||||
<key>key</key>
|
||||
<string>dformat</string>
|
||||
<key>showValue</key>
|
||||
<true/>
|
||||
</dict>
|
||||
<dict>
|
||||
<dict>
|
||||
<key>cell</key>
|
||||
<string>PSGroupCell</string>
|
||||
<key>label</key>
|
||||
<string>Forked from NeinZedd's "DateUnderTimeX". Thank him for his work!</string>
|
||||
</dict>
|
||||
<dict>
|
||||
<dict>
|
||||
<key>cell</key>
|
||||
<string>PSGroupCell</string>
|
||||
<key>footerText</key>
|
||||
<string>Updated by /u/-mpg13- || Original code by /u/NeinZedd9</string>
|
||||
<key>footerAlignment</key>
|
||||
<integer>1</integer>
|
||||
<key>label</key>
|
||||
<string>Use nsdateformatter.com to help you format your date!</string>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>action</key>
|
||||
<string>respring</string>
|
||||
<key>height</key>
|
||||
<string>38</string>
|
||||
<key>cell</key>
|
||||
<string>PSButtonCell</string>
|
||||
<key>label</key>
|
||||
<string>Respring</string>
|
||||
</dict>
|
||||
</array>
|
||||
<key>title</key>
|
||||
<string></string>
|
||||
<string>UnderTime</string>
|
||||
</dict>
|
||||
</plist>
|
||||
|
|
Binary file not shown.
Binary file not shown.
|
@ -29,7 +29,7 @@
|
|||
#define _LOGOS_RETURN_RETAINED
|
||||
#endif
|
||||
|
||||
@class _UIStatusBarBackgroundActivityView; @class _UIStatusBarStringView; @class _UIStatusBarTimeItem;
|
||||
@class _UIStatusBarStringView; @class _UIStatusBarBackgroundActivityView; @class _UIStatusBarTimeItem;
|
||||
static void (*_logos_orig$_ungrouped$_UIStatusBarStringView$setText$)(_LOGOS_SELF_TYPE_NORMAL _UIStatusBarStringView* _LOGOS_SELF_CONST, SEL, NSString *); static void _logos_method$_ungrouped$_UIStatusBarStringView$setText$(_LOGOS_SELF_TYPE_NORMAL _UIStatusBarStringView* _LOGOS_SELF_CONST, SEL, NSString *); static id (*_logos_orig$_ungrouped$_UIStatusBarTimeItem$applyUpdate$toDisplayItem$)(_LOGOS_SELF_TYPE_NORMAL _UIStatusBarTimeItem* _LOGOS_SELF_CONST, SEL, id, id); static id _logos_method$_ungrouped$_UIStatusBarTimeItem$applyUpdate$toDisplayItem$(_LOGOS_SELF_TYPE_NORMAL _UIStatusBarTimeItem* _LOGOS_SELF_CONST, SEL, id, id); static void (*_logos_orig$_ungrouped$_UIStatusBarBackgroundActivityView$setCenter$)(_LOGOS_SELF_TYPE_NORMAL _UIStatusBarBackgroundActivityView* _LOGOS_SELF_CONST, SEL, CGPoint); static void _logos_method$_ungrouped$_UIStatusBarBackgroundActivityView$setCenter$(_LOGOS_SELF_TYPE_NORMAL _UIStatusBarBackgroundActivityView* _LOGOS_SELF_CONST, SEL, CGPoint);
|
||||
|
||||
#line 10 "Tweak.xm"
|
||||
|
@ -39,8 +39,7 @@ static void _logos_method$_ungrouped$_UIStatusBarStringView$setText$(_LOGOS_SELF
|
|||
if([text containsString:@":"]) {
|
||||
_logos_orig$_ungrouped$_UIStatusBarStringView$setText$(self, _cmd, text);
|
||||
if(GetPrefBool(@"Enable")) {
|
||||
NSString *key = @"key";
|
||||
NSString *dformat = [[NSDictionary dictionaryWithContentsOfFile:@"/var/mobile/Library/Preferences/com.mpg13.UnderTime.plist"] valueForKey:key];
|
||||
NSString *dformat = GetPrefString(@"dformat");
|
||||
NSDateFormatter *dateFormatter = [[NSDateFormatter alloc] init];
|
||||
|
||||
[dateFormatter setDateFormat:dformat];
|
||||
|
@ -101,4 +100,4 @@ static void _logos_method$_ungrouped$_UIStatusBarBackgroundActivityView$setCente
|
|||
|
||||
static __attribute__((constructor)) void _logosLocalInit() {
|
||||
{Class _logos_class$_ungrouped$_UIStatusBarStringView = objc_getClass("_UIStatusBarStringView"); MSHookMessageEx(_logos_class$_ungrouped$_UIStatusBarStringView, @selector(setText:), (IMP)&_logos_method$_ungrouped$_UIStatusBarStringView$setText$, (IMP*)&_logos_orig$_ungrouped$_UIStatusBarStringView$setText$);Class _logos_class$_ungrouped$_UIStatusBarTimeItem = objc_getClass("_UIStatusBarTimeItem"); MSHookMessageEx(_logos_class$_ungrouped$_UIStatusBarTimeItem, @selector(applyUpdate:toDisplayItem:), (IMP)&_logos_method$_ungrouped$_UIStatusBarTimeItem$applyUpdate$toDisplayItem$, (IMP*)&_logos_orig$_ungrouped$_UIStatusBarTimeItem$applyUpdate$toDisplayItem$);Class _logos_class$_ungrouped$_UIStatusBarBackgroundActivityView = objc_getClass("_UIStatusBarBackgroundActivityView"); MSHookMessageEx(_logos_class$_ungrouped$_UIStatusBarBackgroundActivityView, @selector(setCenter:), (IMP)&_logos_method$_ungrouped$_UIStatusBarBackgroundActivityView$setCenter$, (IMP*)&_logos_orig$_ungrouped$_UIStatusBarBackgroundActivityView$setCenter$);} }
|
||||
#line 76 "Tweak.xm"
|
||||
#line 75 "Tweak.xm"
|
||||
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -1 +1 @@
|
|||
29
|
||||
38
|
2
Makefile
2
Makefile
|
@ -10,5 +10,5 @@ include $(THEOS_MAKE_PATH)/tweak.mk
|
|||
|
||||
after-install::
|
||||
install.exec "killall -9 SpringBoard"
|
||||
SUBPROJECTS += UnderTime
|
||||
SUBPROJECTS += undertime
|
||||
include $(THEOS_MAKE_PATH)/aggregate.mk
|
||||
|
|
|
@ -1,2 +0,0 @@
|
|||
# DateUnderTimeX
|
||||
Adds today's date under the time on the iPhone X.
|
3
Tweak.xm
3
Tweak.xm
|
@ -13,8 +13,7 @@
|
|||
if([text containsString:@":"]) {
|
||||
%orig;
|
||||
if(GetPrefBool(@"Enable")) {
|
||||
NSString *key = @"key";
|
||||
NSString *dformat = [[NSDictionary dictionaryWithContentsOfFile:@"/var/mobile/Library/Preferences/com.mpg13.UnderTime.plist"] valueForKey:key];
|
||||
NSString *dformat = GetPrefString(@"dformat");
|
||||
NSDateFormatter *dateFormatter = [[NSDateFormatter alloc] init];
|
||||
// dateFormatter.locale = [[NSLocale alloc] initWithLocaleIdentifier:@"en_US"];
|
||||
[dateFormatter setDateFormat:dformat];
|
||||
|
|
|
@ -1,67 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>items</key>
|
||||
<array>
|
||||
<dict>
|
||||
<key>cell</key>
|
||||
<string>PSGroupCell</string>
|
||||
<key>footerCellClass</key>
|
||||
<string>UnderTimeCustomCell</string>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>cell</key>
|
||||
<string>PSGroupCell</string>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>cell</key>
|
||||
<string>PSSwitchCell</string>
|
||||
<key>default</key>
|
||||
<false/>
|
||||
<key>defaults</key>
|
||||
<string>com.mpg13.UnderTime</string>
|
||||
<key>key</key>
|
||||
<string>Enable</string>
|
||||
<key>label</key>
|
||||
<string>Enable</string>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>cell</key>
|
||||
<string>PSEditTextCell</string>
|
||||
<key>default</key>
|
||||
<string>d/M</string>
|
||||
<key>defaults</key>
|
||||
<string>com.mpg13.UnderTime</string>
|
||||
<key>key</key>
|
||||
<string>dformat</string>
|
||||
<key>showValue</key>
|
||||
<true/>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>cell</key>
|
||||
<string>PSGroupCell</string>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>cell</key>
|
||||
<string>PSGroupCell</string>
|
||||
<key>footerText</key>
|
||||
<string>Updated by /u/-mpg13- || Original code by /u/NeinZedd9</string>
|
||||
<key>footerAlignment</key>
|
||||
<integer>1</integer>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>action</key>
|
||||
<string>respring</string>
|
||||
<key>height</key>
|
||||
<string>38</string>
|
||||
<key>cell</key>
|
||||
<string>PSButtonCell</string>
|
||||
<key>label</key>
|
||||
<string>Respring</string>
|
||||
</dict>
|
||||
</array>
|
||||
<key>title</key>
|
||||
<string></string>
|
||||
</dict>
|
||||
</plist>
|
|
@ -1,5 +0,0 @@
|
|||
#import <Preferences/PSListController.h>
|
||||
|
||||
@interface UnderTimeRootListController : PSListController
|
||||
|
||||
@end
|
|
@ -1,76 +0,0 @@
|
|||
#include "UnderTimeRootListController.h"
|
||||
#import <spawn.h>
|
||||
|
||||
|
||||
|
||||
@protocol PreferencesTableCustomView
|
||||
- (id)initWithSpecifier:(id)arg1;
|
||||
|
||||
@optional
|
||||
- (CGFloat)preferredHeightForWidth:(CGFloat)arg1;
|
||||
- (CGFloat)preferredHeightForWidth:(CGFloat)arg1 inTableView:(id)arg2;
|
||||
@end
|
||||
|
||||
@interface UnderTimeCustomCell : UITableViewCell <PreferencesTableCustomView> {
|
||||
UILabel *label;
|
||||
UILabel *underLabel;
|
||||
}
|
||||
@end
|
||||
|
||||
|
||||
@implementation UnderTimeCustomCell
|
||||
|
||||
- (id)initWithSpecifier:(PSSpecifier *)specifier
|
||||
{
|
||||
self = [super initWithStyle:UITableViewCellStyleDefault reuseIdentifier:@"Cell"];
|
||||
if (self) {
|
||||
|
||||
#define kWidth [[UIApplication sharedApplication] keyWindow].frame.size.width
|
||||
CGRect labelFrame = CGRectMake(0, -15, kWidth, 70);
|
||||
CGRect underLabelFrame = CGRectMake(0, 22, kWidth, 70);
|
||||
|
||||
label = [[UILabel alloc] initWithFrame:labelFrame];
|
||||
[label setNumberOfLines:1];
|
||||
label.font = [UIFont fontWithName:@"HelveticaNeue" size:30];
|
||||
[label setText:@"UnderTime"];
|
||||
[label setBackgroundColor:[UIColor clearColor]];
|
||||
label.textColor = [UIColor blackColor];
|
||||
label.textAlignment = NSTextAlignmentCenter;
|
||||
|
||||
underLabel = [[UILabel alloc] initWithFrame:underLabelFrame];
|
||||
[underLabel setNumberOfLines:1];
|
||||
underLabel.font = [UIFont fontWithName:@"HelveticaNeue-Light" size:0];
|
||||
[underLabel setText:@"Nevermind this"];
|
||||
[underLabel setBackgroundColor:[UIColor clearColor]];
|
||||
underLabel.textColor = [UIColor clearColor];
|
||||
underLabel.textAlignment = NSTextAlignmentRight;
|
||||
|
||||
[self addSubview:label];
|
||||
[self addSubview:underLabel];
|
||||
}
|
||||
return self;
|
||||
}
|
||||
- (CGFloat)preferredHeightForWidth:(CGFloat)arg1 {
|
||||
CGFloat prefHeight = 75.0;
|
||||
return prefHeight;
|
||||
}
|
||||
@end
|
||||
|
||||
|
||||
@implementation UnderTimeRootListController
|
||||
- (NSArray *)specifiers {
|
||||
if (!_specifiers) {
|
||||
_specifiers = [[self loadSpecifiersFromPlistName:@"Root" target:self] retain];
|
||||
}
|
||||
|
||||
return _specifiers;
|
||||
}
|
||||
|
||||
-(void) respring {
|
||||
pid_t pid;
|
||||
int status;
|
||||
const char* args[] = {"killall", "-9", "backboardd", NULL};
|
||||
posix_spawn(&pid, "/usr/bin/killall", NULL, NULL, (char* const*)args, NULL);
|
||||
waitpid(pid, &status, WEXITED);
|
||||
}
|
||||
@end
|
2
control
2
control
|
@ -1,7 +1,7 @@
|
|||
Package: com.mpg13.undertime
|
||||
Name: UnderTime
|
||||
Depends: mobilesubstrate
|
||||
Version: 1.2
|
||||
Version: 1.1
|
||||
Architecture: iphoneos-arm
|
||||
Description: Customizable date under time in iX StatusBar.
|
||||
Maintainer: MPG13
|
||||
|
|
|
@ -1,17 +0,0 @@
|
|||
/home/mpg13/DateUnderTimeX/i8corners/.theos/obj/debug/arm64/Tweak.xm.9d552d4c.o: \
|
||||
/home/mpg13/DateUnderTimeX/i8corners/.theos/obj/debug/arm64/Tweak.xm.mm \
|
||||
/home/mpg13/DateUnderTimeX/i8corners/theos/Prefix.pch \
|
||||
/home/mpg13/DateUnderTimeX/i8corners/theos/vendor/include/_Prefix/BackwardsCompat.h \
|
||||
/home/mpg13/DateUnderTimeX/i8corners/theos/vendor/include/_Prefix/IOSMacros.h \
|
||||
/home/mpg13/DateUnderTimeX/i8corners/Bits.h \
|
||||
/home/mpg13/DateUnderTimeX/i8corners/theos/vendor/include/substrate.h
|
||||
|
||||
/home/mpg13/DateUnderTimeX/i8corners/theos/Prefix.pch:
|
||||
|
||||
/home/mpg13/DateUnderTimeX/i8corners/theos/vendor/include/_Prefix/BackwardsCompat.h:
|
||||
|
||||
/home/mpg13/DateUnderTimeX/i8corners/theos/vendor/include/_Prefix/IOSMacros.h:
|
||||
|
||||
/home/mpg13/DateUnderTimeX/i8corners/Bits.h:
|
||||
|
||||
/home/mpg13/DateUnderTimeX/i8corners/theos/vendor/include/substrate.h:
|
Binary file not shown.
Binary file not shown.
|
@ -1,20 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>CFBundleDevelopmentRegion</key>
|
||||
<string>English</string>
|
||||
<key>CFBundleIdentifier</key>
|
||||
<string>com.apple.xcode.dsym.i8Corners</string>
|
||||
<key>CFBundleInfoDictionaryVersion</key>
|
||||
<string>6.0</string>
|
||||
<key>CFBundlePackageType</key>
|
||||
<string>dSYM</string>
|
||||
<key>CFBundleSignature</key>
|
||||
<string>????</string>
|
||||
<key>CFBundleShortVersionString</key>
|
||||
<string>1.0</string>
|
||||
<key>CFBundleVersion</key>
|
||||
<string>1</string>
|
||||
</dict>
|
||||
</plist>
|
Binary file not shown.
Binary file not shown.
|
@ -1,20 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>CFBundleDevelopmentRegion</key>
|
||||
<string>English</string>
|
||||
<key>CFBundleIdentifier</key>
|
||||
<string>com.apple.xcode.dsym.i8Corners.dylib</string>
|
||||
<key>CFBundleInfoDictionaryVersion</key>
|
||||
<string>6.0</string>
|
||||
<key>CFBundlePackageType</key>
|
||||
<string>dSYM</string>
|
||||
<key>CFBundleSignature</key>
|
||||
<string>????</string>
|
||||
<key>CFBundleShortVersionString</key>
|
||||
<string>1.0</string>
|
||||
<key>CFBundleVersion</key>
|
||||
<string>1</string>
|
||||
</dict>
|
||||
</plist>
|
Binary file not shown.
|
@ -1,20 +0,0 @@
|
|||
/home/mpg13/DateUnderTimeX/i8corners/.theos/obj/debug/arm64/i8CornersRootListController.m.52999d91.o: \
|
||||
i8CornersRootListController.m \
|
||||
/home/mpg13/DateUnderTimeX/i8corners/theos/Prefix.pch \
|
||||
/home/mpg13/DateUnderTimeX/i8corners/theos/vendor/include/_Prefix/BackwardsCompat.h \
|
||||
/home/mpg13/DateUnderTimeX/i8corners/theos/vendor/include/_Prefix/IOSMacros.h \
|
||||
i8CornersRootListController.h \
|
||||
/home/mpg13/DateUnderTimeX/i8corners/theos/vendor/include/Preferences/PSListController.h \
|
||||
/home/mpg13/DateUnderTimeX/i8corners/theos/vendor/include/Preferences/PSViewController.h
|
||||
|
||||
/home/mpg13/DateUnderTimeX/i8corners/theos/Prefix.pch:
|
||||
|
||||
/home/mpg13/DateUnderTimeX/i8corners/theos/vendor/include/_Prefix/BackwardsCompat.h:
|
||||
|
||||
/home/mpg13/DateUnderTimeX/i8corners/theos/vendor/include/_Prefix/IOSMacros.h:
|
||||
|
||||
i8CornersRootListController.h:
|
||||
|
||||
/home/mpg13/DateUnderTimeX/i8corners/theos/vendor/include/Preferences/PSListController.h:
|
||||
|
||||
/home/mpg13/DateUnderTimeX/i8corners/theos/vendor/include/Preferences/PSViewController.h:
|
Binary file not shown.
|
@ -1,17 +0,0 @@
|
|||
/home/mpg13/DateUnderTimeX/i8corners/.theos/obj/debug/armv7/Tweak.xm.6b919789.o: \
|
||||
/home/mpg13/DateUnderTimeX/i8corners/.theos/obj/debug/armv7/Tweak.xm.mm \
|
||||
/home/mpg13/DateUnderTimeX/i8corners/theos/Prefix.pch \
|
||||
/home/mpg13/DateUnderTimeX/i8corners/theos/vendor/include/_Prefix/BackwardsCompat.h \
|
||||
/home/mpg13/DateUnderTimeX/i8corners/theos/vendor/include/_Prefix/IOSMacros.h \
|
||||
/home/mpg13/DateUnderTimeX/i8corners/Bits.h \
|
||||
/home/mpg13/DateUnderTimeX/i8corners/theos/vendor/include/substrate.h
|
||||
|
||||
/home/mpg13/DateUnderTimeX/i8corners/theos/Prefix.pch:
|
||||
|
||||
/home/mpg13/DateUnderTimeX/i8corners/theos/vendor/include/_Prefix/BackwardsCompat.h:
|
||||
|
||||
/home/mpg13/DateUnderTimeX/i8corners/theos/vendor/include/_Prefix/IOSMacros.h:
|
||||
|
||||
/home/mpg13/DateUnderTimeX/i8corners/Bits.h:
|
||||
|
||||
/home/mpg13/DateUnderTimeX/i8corners/theos/vendor/include/substrate.h:
|
Binary file not shown.
Binary file not shown.
|
@ -1,20 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>CFBundleDevelopmentRegion</key>
|
||||
<string>English</string>
|
||||
<key>CFBundleIdentifier</key>
|
||||
<string>com.apple.xcode.dsym.i8Corners.dylib</string>
|
||||
<key>CFBundleInfoDictionaryVersion</key>
|
||||
<string>6.0</string>
|
||||
<key>CFBundlePackageType</key>
|
||||
<string>dSYM</string>
|
||||
<key>CFBundleSignature</key>
|
||||
<string>????</string>
|
||||
<key>CFBundleShortVersionString</key>
|
||||
<string>1.0</string>
|
||||
<key>CFBundleVersion</key>
|
||||
<string>1</string>
|
||||
</dict>
|
||||
</plist>
|
Binary file not shown.
|
@ -1,20 +0,0 @@
|
|||
/home/mpg13/DateUnderTimeX/i8corners/.theos/obj/debug/armv7/i8CornersRootListController.m.c23f7bb4.o: \
|
||||
i8CornersRootListController.m \
|
||||
/home/mpg13/DateUnderTimeX/i8corners/theos/Prefix.pch \
|
||||
/home/mpg13/DateUnderTimeX/i8corners/theos/vendor/include/_Prefix/BackwardsCompat.h \
|
||||
/home/mpg13/DateUnderTimeX/i8corners/theos/vendor/include/_Prefix/IOSMacros.h \
|
||||
i8CornersRootListController.h \
|
||||
/home/mpg13/DateUnderTimeX/i8corners/theos/vendor/include/Preferences/PSListController.h \
|
||||
/home/mpg13/DateUnderTimeX/i8corners/theos/vendor/include/Preferences/PSViewController.h
|
||||
|
||||
/home/mpg13/DateUnderTimeX/i8corners/theos/Prefix.pch:
|
||||
|
||||
/home/mpg13/DateUnderTimeX/i8corners/theos/vendor/include/_Prefix/BackwardsCompat.h:
|
||||
|
||||
/home/mpg13/DateUnderTimeX/i8corners/theos/vendor/include/_Prefix/IOSMacros.h:
|
||||
|
||||
i8CornersRootListController.h:
|
||||
|
||||
/home/mpg13/DateUnderTimeX/i8corners/theos/vendor/include/Preferences/PSListController.h:
|
||||
|
||||
/home/mpg13/DateUnderTimeX/i8corners/theos/vendor/include/Preferences/PSViewController.h:
|
Binary file not shown.
|
@ -1,17 +0,0 @@
|
|||
/home/mpg13/DateUnderTimeX/i8corners/.theos/obj/debug/armv7s/Tweak.xm.367a5aa9.o: \
|
||||
/home/mpg13/DateUnderTimeX/i8corners/.theos/obj/debug/armv7s/Tweak.xm.mm \
|
||||
/home/mpg13/DateUnderTimeX/i8corners/theos/Prefix.pch \
|
||||
/home/mpg13/DateUnderTimeX/i8corners/theos/vendor/include/_Prefix/BackwardsCompat.h \
|
||||
/home/mpg13/DateUnderTimeX/i8corners/theos/vendor/include/_Prefix/IOSMacros.h \
|
||||
/home/mpg13/DateUnderTimeX/i8corners/Bits.h \
|
||||
/home/mpg13/DateUnderTimeX/i8corners/theos/vendor/include/substrate.h
|
||||
|
||||
/home/mpg13/DateUnderTimeX/i8corners/theos/Prefix.pch:
|
||||
|
||||
/home/mpg13/DateUnderTimeX/i8corners/theos/vendor/include/_Prefix/BackwardsCompat.h:
|
||||
|
||||
/home/mpg13/DateUnderTimeX/i8corners/theos/vendor/include/_Prefix/IOSMacros.h:
|
||||
|
||||
/home/mpg13/DateUnderTimeX/i8corners/Bits.h:
|
||||
|
||||
/home/mpg13/DateUnderTimeX/i8corners/theos/vendor/include/substrate.h:
|
Binary file not shown.
Binary file not shown.
|
@ -1,20 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>CFBundleDevelopmentRegion</key>
|
||||
<string>English</string>
|
||||
<key>CFBundleIdentifier</key>
|
||||
<string>com.apple.xcode.dsym.i8Corners.dylib</string>
|
||||
<key>CFBundleInfoDictionaryVersion</key>
|
||||
<string>6.0</string>
|
||||
<key>CFBundlePackageType</key>
|
||||
<string>dSYM</string>
|
||||
<key>CFBundleSignature</key>
|
||||
<string>????</string>
|
||||
<key>CFBundleShortVersionString</key>
|
||||
<string>1.0</string>
|
||||
<key>CFBundleVersion</key>
|
||||
<string>1</string>
|
||||
</dict>
|
||||
</plist>
|
Binary file not shown.
|
@ -1,24 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>CFBundleDevelopmentRegion</key>
|
||||
<string>English</string>
|
||||
<key>CFBundleExecutable</key>
|
||||
<string>i8Corners</string>
|
||||
<key>CFBundleIdentifier</key>
|
||||
<string>com.antique.i8corners</string>
|
||||
<key>CFBundleInfoDictionaryVersion</key>
|
||||
<string>6.0</string>
|
||||
<key>CFBundlePackageType</key>
|
||||
<string>BNDL</string>
|
||||
<key>CFBundleShortVersionString</key>
|
||||
<string>1.0.0</string>
|
||||
<key>CFBundleSignature</key>
|
||||
<string>????</string>
|
||||
<key>CFBundleVersion</key>
|
||||
<string>1.0</string>
|
||||
<key>NSPrincipalClass</key>
|
||||
<string>i8CornersRootListController</string>
|
||||
</dict>
|
||||
</plist>
|
|
@ -1,71 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>items</key>
|
||||
<array>
|
||||
<dict>
|
||||
<key>cell</key>
|
||||
<string>PSGroupCell</string>
|
||||
<key>footerCellClass</key>
|
||||
<string>i8CornersCustomCell</string>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>cell</key>
|
||||
<string>PSGroupCell</string>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>cell</key>
|
||||
<string>PSSwitchCell</string>
|
||||
<key>default</key>
|
||||
<false/>
|
||||
<key>defaults</key>
|
||||
<string>com.antique.i8corners</string>
|
||||
<key>key</key>
|
||||
<string>Enable</string>
|
||||
<key>label</key>
|
||||
<string>Enable</string>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>cell</key>
|
||||
<string>PSSliderCell</string>
|
||||
<key>default</key>
|
||||
<integer>0</integer>
|
||||
<key>defaults</key>
|
||||
<string>com.antique.i8corners</string>
|
||||
<key>key</key>
|
||||
<string>cRadius</string>
|
||||
<key>max</key>
|
||||
<real>15</real>
|
||||
<key>min</key>
|
||||
<real>0</real>
|
||||
<key>showValue</key>
|
||||
<true/>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>cell</key>
|
||||
<string>PSGroupCell</string>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>cell</key>
|
||||
<string>PSGroupCell</string>
|
||||
<key>footerText</key>
|
||||
<string>Developed by @Antique_Dev © 2017. All Rights Reserved</string>
|
||||
<key>footerAlignment</key>
|
||||
<integer>1</integer>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>action</key>
|
||||
<string>respring</string>
|
||||
<key>height</key>
|
||||
<string>38</string>
|
||||
<key>cell</key>
|
||||
<string>PSButtonCell</string>
|
||||
<key>label</key>
|
||||
<string>Respring</string>
|
||||
</dict>
|
||||
</array>
|
||||
<key>title</key>
|
||||
<string></string>
|
||||
</dict>
|
||||
</plist>
|
Binary file not shown.
Before Width: | Height: | Size: 6.8 KiB |
Binary file not shown.
|
@ -1,11 +0,0 @@
|
|||
#define PLIST_PATH @"/var/mobile/Library/Preferences/com.antique.i8corners.plist"
|
||||
|
||||
|
||||
inline bool GetPrefBool(NSString *key)
|
||||
{
|
||||
return [[[NSDictionary dictionaryWithContentsOfFile:PLIST_PATH] valueForKey:key] boolValue];
|
||||
}
|
||||
|
||||
inline int GetPrefInt(NSString *key) {
|
||||
return [[[NSDictionary dictionaryWithContentsOfFile:PLIST_PATH] valueForKey:key] intValue];
|
||||
}
|
|
@ -1,15 +0,0 @@
|
|||
ARCHS = arm64
|
||||
TARGET = iphone:clang:latest:latest
|
||||
|
||||
include theos/makefiles/common.mk
|
||||
|
||||
TWEAK_NAME = i8Corners
|
||||
i8Corners_FILES = Tweak.xm
|
||||
i8Corners_FRAMEWORKS = UIKit
|
||||
|
||||
include $(THEOS_MAKE_PATH)/tweak.mk
|
||||
|
||||
after-install::
|
||||
install.exec "killall -9 backboardd"
|
||||
SUBPROJECTS += i8corners
|
||||
include $(THEOS_MAKE_PATH)/aggregate.mk
|
|
@ -1,14 +0,0 @@
|
|||
#import "Bits.h"
|
||||
|
||||
|
||||
%hook UIWindow
|
||||
-(void) layoutSubviews {
|
||||
%orig;
|
||||
int radius = GetPrefInt(@"cRadius");
|
||||
|
||||
|
||||
if(GetPrefBool(@"Enable")) {
|
||||
self.layer.cornerRadius = radius;
|
||||
}
|
||||
}
|
||||
%end
|
|
@ -1,10 +0,0 @@
|
|||
Package: com.antique.i8corners
|
||||
Name: i8Corners
|
||||
Depends: mobilesubstrate
|
||||
Version: 0.12
|
||||
Description: iPhone 8 inspired screen corners
|
||||
Depiction: https://antiquebeta.github.io/i8corners.html
|
||||
Architecture: iphoneos-arm
|
||||
Maintainer: Antique <boernai290@gmail.com>
|
||||
Author: Antique <boernai290@gmail.com>
|
||||
Section: Tweaks
|
|
@ -1 +0,0 @@
|
|||
{ Filter = { Bundles = ( "com.apple.springboard", "com.apple.UIKit" ); }; }
|
|
@ -1,13 +0,0 @@
|
|||
include $(THEOS)/makefiles/common.mk
|
||||
|
||||
BUNDLE_NAME = i8Corners
|
||||
i8Corners_FILES = i8CornersRootListController.m
|
||||
i8Corners_INSTALL_PATH = /Library/PreferenceBundles
|
||||
i8Corners_FRAMEWORKS = UIKit
|
||||
i8Corners_PRIVATE_FRAMEWORKS = Preferences
|
||||
|
||||
include $(THEOS_MAKE_PATH)/bundle.mk
|
||||
|
||||
internal-stage::
|
||||
$(ECHO_NOTHING)mkdir -p $(THEOS_STAGING_DIR)/Library/PreferenceLoader/Preferences$(ECHO_END)
|
||||
$(ECHO_NOTHING)cp entry.plist $(THEOS_STAGING_DIR)/Library/PreferenceLoader/Preferences/i8Corners.plist$(ECHO_END)
|
|
@ -1,24 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>CFBundleDevelopmentRegion</key>
|
||||
<string>English</string>
|
||||
<key>CFBundleExecutable</key>
|
||||
<string>i8Corners</string>
|
||||
<key>CFBundleIdentifier</key>
|
||||
<string>com.antique.i8corners</string>
|
||||
<key>CFBundleInfoDictionaryVersion</key>
|
||||
<string>6.0</string>
|
||||
<key>CFBundlePackageType</key>
|
||||
<string>BNDL</string>
|
||||
<key>CFBundleShortVersionString</key>
|
||||
<string>1.0.0</string>
|
||||
<key>CFBundleSignature</key>
|
||||
<string>????</string>
|
||||
<key>CFBundleVersion</key>
|
||||
<string>1.0</string>
|
||||
<key>NSPrincipalClass</key>
|
||||
<string>i8CornersRootListController</string>
|
||||
</dict>
|
||||
</plist>
|
|
@ -1,71 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>items</key>
|
||||
<array>
|
||||
<dict>
|
||||
<key>cell</key>
|
||||
<string>PSGroupCell</string>
|
||||
<key>footerCellClass</key>
|
||||
<string>i8CornersCustomCell</string>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>cell</key>
|
||||
<string>PSGroupCell</string>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>cell</key>
|
||||
<string>PSSwitchCell</string>
|
||||
<key>default</key>
|
||||
<false/>
|
||||
<key>defaults</key>
|
||||
<string>com.antique.i8corners</string>
|
||||
<key>key</key>
|
||||
<string>Enable</string>
|
||||
<key>label</key>
|
||||
<string>Enable</string>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>cell</key>
|
||||
<string>PSSliderCell</string>
|
||||
<key>default</key>
|
||||
<integer>0</integer>
|
||||
<key>defaults</key>
|
||||
<string>com.antique.i8corners</string>
|
||||
<key>key</key>
|
||||
<string>cRadius</string>
|
||||
<key>max</key>
|
||||
<real>15</real>
|
||||
<key>min</key>
|
||||
<real>0</real>
|
||||
<key>showValue</key>
|
||||
<true/>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>cell</key>
|
||||
<string>PSGroupCell</string>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>cell</key>
|
||||
<string>PSGroupCell</string>
|
||||
<key>footerText</key>
|
||||
<string>Developed by @Antique_Dev © 2017. All Rights Reserved</string>
|
||||
<key>footerAlignment</key>
|
||||
<integer>1</integer>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>action</key>
|
||||
<string>respring</string>
|
||||
<key>height</key>
|
||||
<string>38</string>
|
||||
<key>cell</key>
|
||||
<string>PSButtonCell</string>
|
||||
<key>label</key>
|
||||
<string>Respring</string>
|
||||
</dict>
|
||||
</array>
|
||||
<key>title</key>
|
||||
<string></string>
|
||||
</dict>
|
||||
</plist>
|
Binary file not shown.
Before Width: | Height: | Size: 6.8 KiB |
|
@ -1,21 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>entry</key>
|
||||
<dict>
|
||||
<key>bundle</key>
|
||||
<string>i8Corners</string>
|
||||
<key>cell</key>
|
||||
<string>PSLinkCell</string>
|
||||
<key>detail</key>
|
||||
<string>i8CornersRootListController</string>
|
||||
<key>icon</key>
|
||||
<string>icon.png</string>
|
||||
<key>isController</key>
|
||||
<true/>
|
||||
<key>label</key>
|
||||
<string>i8Corners</string>
|
||||
</dict>
|
||||
</dict>
|
||||
</plist>
|
|
@ -1,5 +0,0 @@
|
|||
#import <Preferences/PSListController.h>
|
||||
|
||||
@interface i8CornersRootListController : PSListController
|
||||
|
||||
@end
|
|
@ -1,76 +0,0 @@
|
|||
#include "i8CornersRootListController.h"
|
||||
#import <spawn.h>
|
||||
|
||||
|
||||
|
||||
@protocol PreferencesTableCustomView
|
||||
- (id)initWithSpecifier:(id)arg1;
|
||||
|
||||
@optional
|
||||
- (CGFloat)preferredHeightForWidth:(CGFloat)arg1;
|
||||
- (CGFloat)preferredHeightForWidth:(CGFloat)arg1 inTableView:(id)arg2;
|
||||
@end
|
||||
|
||||
@interface i8CornersCustomCell : UITableViewCell <PreferencesTableCustomView> {
|
||||
UILabel *label;
|
||||
UILabel *underLabel;
|
||||
}
|
||||
@end
|
||||
|
||||
|
||||
@implementation i8CornersCustomCell
|
||||
|
||||
- (id)initWithSpecifier:(PSSpecifier *)specifier
|
||||
{
|
||||
self = [super initWithStyle:UITableViewCellStyleDefault reuseIdentifier:@"Cell"];
|
||||
if (self) {
|
||||
|
||||
#define kWidth [[UIApplication sharedApplication] keyWindow].frame.size.width
|
||||
CGRect labelFrame = CGRectMake(0, -15, kWidth, 70);
|
||||
CGRect underLabelFrame = CGRectMake(0, 22, kWidth, 70);
|
||||
|
||||
label = [[UILabel alloc] initWithFrame:labelFrame];
|
||||
[label setNumberOfLines:1];
|
||||
label.font = [UIFont fontWithName:@"HelveticaNeue-Thin" size:60];
|
||||
[label setText:@"i8Corners"];
|
||||
[label setBackgroundColor:[UIColor clearColor]];
|
||||
label.textColor = [UIColor blackColor];
|
||||
label.textAlignment = NSTextAlignmentCenter;
|
||||
|
||||
underLabel = [[UILabel alloc] initWithFrame:underLabelFrame];
|
||||
[underLabel setNumberOfLines:1];
|
||||
underLabel.font = [UIFont fontWithName:@"HelveticaNeue-Light" size:12];
|
||||
[underLabel setText:@"iPhone 8 Inspired Screen Corners"];
|
||||
[underLabel setBackgroundColor:[UIColor clearColor]];
|
||||
underLabel.textColor = [UIColor grayColor];
|
||||
underLabel.textAlignment = NSTextAlignmentCenter;
|
||||
|
||||
[self addSubview:label];
|
||||
[self addSubview:underLabel];
|
||||
}
|
||||
return self;
|
||||
}
|
||||
- (CGFloat)preferredHeightForWidth:(CGFloat)arg1 {
|
||||
CGFloat prefHeight = 75.0;
|
||||
return prefHeight;
|
||||
}
|
||||
@end
|
||||
|
||||
|
||||
@implementation i8CornersRootListController
|
||||
- (NSArray *)specifiers {
|
||||
if (!_specifiers) {
|
||||
_specifiers = [[self loadSpecifiersFromPlistName:@"Root" target:self] retain];
|
||||
}
|
||||
|
||||
return _specifiers;
|
||||
}
|
||||
|
||||
-(void) respring {
|
||||
pid_t pid;
|
||||
int status;
|
||||
const char* args[] = {"killall", "-9", "backboardd", NULL};
|
||||
posix_spawn(&pid, "/usr/bin/killall", NULL, NULL, (char* const*)args, NULL);
|
||||
waitpid(pid, &status, WEXITED);
|
||||
}
|
||||
@end
|
|
@ -1 +0,0 @@
|
|||
/home/mpg13/theos
|
|
@ -1,7 +1,12 @@
|
|||
#define PLIST_PATH @"/var/mobile/Library/Preferences/com.mpg13.UnderTime.plist"
|
||||
#define PLIST_PATH @"/var/mobile/Library/Preferences/com.mpg13.undertime.plist"
|
||||
|
||||
|
||||
inline bool GetPrefBool(NSString *key)
|
||||
{
|
||||
return [[[NSDictionary dictionaryWithContentsOfFile:PLIST_PATH] valueForKey:key] boolValue];
|
||||
}
|
||||
}
|
||||
|
||||
inline *NSString GetPrefString(NSString *key)
|
||||
{
|
||||
return [[NSDictionary dictionaryWithContentsOfFile:PLIST_PATH] objectForKey:key];
|
||||
}
|
||||
|
|
Binary file not shown.
Reference in a new issue