]> git.saurik.com Git - cydget.git/commitdiff
Added currentConfiguration mechanism.
authorJay Freeman (saurik) <saurik@saurik.com>
Mon, 2 Nov 2009 23:28:53 +0000 (23:28 +0000)
committerJay Freeman (saurik) <saurik@saurik.com>
Mon, 2 Nov 2009 23:28:53 +0000 (23:28 +0000)
Tweak.mm
control

index e07af3bfdb1a9bc6eb608492d04b63c4627236e5..9ac3ba0f9ff26342054ad2a75e33bdfb3a3431f2 100644 (file)
--- a/Tweak.mm
+++ b/Tweak.mm
@@ -58,6 +58,21 @@ static unsigned lock_;
 static _H<NSArray> cydgets_;
 static size_t active_ = _not(size_t);
 
+@interface CydgetController : NSObject {
+}
+
++ (NSDictionary *) currentConfiguration;
+
+@end
+
+@implementation CydgetController
+
++ (NSDictionary *) currentConfiguration {
+    return active_ == _not(size_t) ? nil : [[cydgets_ objectAtIndex:active_] objectForKey:@"Configuration"];
+}
+
+@end
+
 @interface NSDictionary (Cydgets)
 - (void) enableCydget:(SBAwayController *)away;
 - (void) disableCydget:(SBAwayController *)away;
diff --git a/control b/control
index 0a4aebd400bbfa2dfab6924c66b40f9b0b0388d4..f1bebcffc3026ac74cb2e9464978027402de9f23 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.3065-1
+Version: 0.9.3066-1
 Description: framework for managing lock screen plugins
 Name: Cydget
 Depends: mobilesubstrate (>= 0.9.2587-1)