fix for modern times

This commit is contained in:
2024-11-10 05:42:51 +05:00
parent aa6faf605e
commit 945ecccc89
9 changed files with 23 additions and 15 deletions

View File

@@ -1,5 +1,6 @@
#import "AACoreDataStack.h"
#import <CoreData/CoreData.h>
#import <rootless.h>
@interface AACoreDataStack ()
@@ -16,11 +17,11 @@
-(id)init {
if (self = [super init]) {
NSURL *url = [NSURL fileURLWithPath:@"/Library/PreferenceBundles/AutoAlertsPreferences.bundle/AutoAlerts.momd"];
NSURL *url = [NSURL fileURLWithPath:ROOT_PATH_NS(@"/Library/PreferenceBundles/AutoAlertsPreferences.bundle/AutoAlerts.momd")];
NSManagedObjectModel *model = [[[NSManagedObjectModel alloc] initWithContentsOfURL:url] autorelease];
NSString *dir = @"/var/mobile/Library/Preferences/AutoAlerts/";
NSString *dir = ROOT_PATH_NS(@"/var/mobile/Library/Preferences/AutoAlerts/");
BOOL isSpringBoard = [[NSBundle mainBundle].bundleIdentifier isEqual:@"com.apple.springboard"];