From 3cf4303e7af5e4f23dc43725fbb710893951222b Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Mon, 2 Nov 2009 08:21:07 +0000 Subject: [PATCH] Added the empty LockCydgets folder and setup plist reading for .cydget sub-bundles. --- Tweak.mm | 6 +++--- control | 2 +- makefile | 3 +++ 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/Tweak.mm b/Tweak.mm index c1edf62..e07af3b 100644 --- a/Tweak.mm +++ b/Tweak.mm @@ -136,9 +136,9 @@ MSInstanceMessageHook1(void, SBAwayController, _finishedUnlockAttemptWithStatus, MSInitialize { _pooled cydgets_ = [NSMutableArray arrayWithCapacity:4]; - for (NSString *plist in [[NSFileManager defaultManager] directoryContentsAtPath:Cydgets_]) - if ([plist hasSuffix:@".plist"]) - [cydgets_ addObject:[NSDictionary dictionaryWithContentsOfFile:[Cydgets_ stringByAppendingPathComponent:plist]]]; + for (NSString *folder in [[NSFileManager defaultManager] directoryContentsAtPath:Cydgets_]) + if ([folder hasSuffix:@".cydget"]) + [cydgets_ addObject:[NSDictionary dictionaryWithContentsOfFile:[[Cydgets_ stringByAppendingPathComponent:folder] stringByAppendingPathComponent:@"Info.plist"]]]; MSHookMessage1(SpringBoard, menuButtonUp); diff --git a/control b/control index f5dd29a..0a4aebd 100644 --- a/control +++ b/control @@ -3,7 +3,7 @@ Priority: optional Section: Tweaks Maintainer: Jay Freeman (saurik) Architecture: iphoneos-arm -Version: 0.9.3064-1 +Version: 0.9.3065-1 Description: framework for managing lock screen plugins Name: Cydget Depends: mobilesubstrate (>= 0.9.2587-1) diff --git a/makefile b/makefile index 1d7f33c..63fd4b1 100644 --- a/makefile +++ b/makefile @@ -2,3 +2,6 @@ name := CydgetLoader flags := -framework UIKit -framework AddressBook base := $(shell cd ~; pwd)/menes/tweaks include $(base)/tweak.mk + +extra: + mkdir -p package/System/Library/LockCydgets -- 2.47.2