Sfoglia il codice sorgente

fix preferences for iOS 15 xina beta jailbreak

master
gilshahar7 1 anno fa
parent
commit
a1143d57c7
5 ha cambiato i file con 5 aggiunte e 5 eliminazioni
  1. +1
    -1
      Makefile
  2. +1
    -1
      control
  3. +2
    -2
      exacttimeprefs/ExactTimeprefs.mm
  4. +1
    -1
      exacttimeprefs/Makefile
  5. BIN
      packages/com.gilshahar7.exacttime_2.0.1_iphoneos-arm.deb

+ 1
- 1
Makefile Vedi File

@@ -2,7 +2,7 @@ ARCHS = armv7 arm64 arm64e
export TARGET = iphone:clang:11.2:7.0
include $(THEOS)/makefiles/common.mk

DEBUG=0
FINALPACKAGE=1

TWEAK_NAME = ExactTime ExactTimeMail ExactTimePhone ExactTimeMessages
ExactTime_FILES = ExactTime.xm

+ 1
- 1
control Vedi File

@@ -2,7 +2,7 @@ Package: com.gilshahar7.exacttime
Name: ExactTime
Depends: mobilesubstrate
Conflicts: com.gilshahar7.exacttimemail, com.gilshahar7.exacttimephone, com.gilshahar7.exacttimemessages
Version: 2.0
Version: 2.0.1
Architecture: iphoneos-arm
Description: Shows the exact time of notifications, messages, calls and emails.
Maintainer: gilshahar7

+ 2
- 2
exacttimeprefs/ExactTimeprefs.mm Vedi File

@@ -12,14 +12,14 @@
@implementation ExactTimeprefsListController

- (id)readPreferenceValue:(PSSpecifier*)specifier {
NSString *path = [NSString stringWithFormat:@"/User/Library/Preferences/%@.plist", specifier.properties[@"defaults"]];
NSString *path = [NSString stringWithFormat:@"/var/mobile/Library/Preferences/%@.plist", specifier.properties[@"defaults"]];
NSMutableDictionary *settings = [NSMutableDictionary dictionary];
[settings addEntriesFromDictionary:[NSDictionary dictionaryWithContentsOfFile:path]];
return (settings[specifier.properties[@"key"]]) ?: specifier.properties[@"default"];
}

- (void)setPreferenceValue:(id)value specifier:(PSSpecifier*)specifier {
NSString *path = [NSString stringWithFormat:@"/User/Library/Preferences/%@.plist", specifier.properties[@"defaults"]];
NSString *path = [NSString stringWithFormat:@"/var/mobile/Library/Preferences/%@.plist", specifier.properties[@"defaults"]];
NSMutableDictionary *settings = [NSMutableDictionary dictionary];
[settings addEntriesFromDictionary:[NSDictionary dictionaryWithContentsOfFile:path]];
[settings setObject:value forKey:specifier.properties[@"key"]];

+ 1
- 1
exacttimeprefs/Makefile Vedi File

@@ -2,7 +2,7 @@ ARCHS = armv7 arm64 arm64e
export TARGET = iphone:clang:11.2:7.0
include $(THEOS)/makefiles/common.mk

DEBUG=0
FINALPACKAGE=1

BUNDLE_NAME = ExactTimeprefs
ExactTimeprefs_FILES = ExactTimeprefs.mm

BIN
packages/com.gilshahar7.exacttime_2.0.1_iphoneos-arm.deb Vedi File


Loading…
Annulla
Salva