]> git.saurik.com Git - cydget.git/commitdiff
Added the empty LockCydgets folder and setup plist reading for .cydget sub-bundles.
authorJay Freeman (saurik) <saurik@saurik.com>
Mon, 2 Nov 2009 08:21:07 +0000 (08:21 +0000)
committerJay Freeman (saurik) <saurik@saurik.com>
Mon, 2 Nov 2009 08:21:07 +0000 (08:21 +0000)
Tweak.mm
control
makefile

index c1edf625d0b61b943c1cc12f2110fd347079118e..e07af3bfdb1a9bc6eb608492d04b63c4627236e5 100644 (file)
--- 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 f5dd29afb6d58c0f294ebce3f656aac2afdc2e22..0a4aebd400bbfa2dfab6924c66b40f9b0b0388d4 100644 (file)
--- a/control
+++ b/control
@@ -3,7 +3,7 @@ Priority: optional
 Section: Tweaks
 Maintainer: Jay Freeman (saurik) <saurik@saurik.com>
 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)
index 1d7f33c2d087cce522ac92fa76e1e62613bdbb16..63fd4b1d242f60458c58c386a8db413a436bb639 100644 (file)
--- 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