]> git.saurik.com Git - cydia.git/commitdiff
Improve the gsc.* packages for iPad compatibility.
authorJay Freeman (saurik) <saurik@saurik.com>
Fri, 20 Jan 2012 10:00:14 +0000 (02:00 -0800)
committerJay Freeman (saurik) <saurik@saurik.com>
Fri, 20 Jan 2012 10:00:14 +0000 (02:00 -0800)
Library/firmware.sh
MobileCydia.mm

index ac1381dbb8846b2462cd2eee53798d3a9653937f..1bc6a4141ad0e91086b042b87154b2c49241fdc1 100755 (executable)
@@ -104,13 +104,15 @@ EOF
             s/([A-Z])/-\L\1/g; s/^"([^ ]*)"/\1/;
             s/^-//;
             / 0$/ d;
-        ' | while read -r name value; do
-            pseudo "gsc.${name}" "${value}" "virtual GraphicsServices dependency"
-
-            if [[ ${name} == ipad ]]; then
-                pseudo "gsc.wildcat" "${value}" "virtual virtual GraphicsServices dependency"
-            fi
-        done
+        ' | while read -r name value; do case "${name}" in
+            (ipad) for name in ipad wildcat; do
+                pseudo "gsc.${name}" "${value}" "this device has a very large screen" "iPad"
+            done;;
+
+            (*)
+                pseudo "gsc.${name}" "${value}" "virtual GraphicsServices dependency"
+            ;;
+        esac; done
     fi
 
     if [[ ${cpu} == arm ]]; then
@@ -141,5 +143,5 @@ if [[ ${cpu} == arm ]]; then
         cp -afT /User /var/mobile
     fi && rm -rf /User && ln -s "/var/mobile" /User
 
-    echo 5 >/var/lib/cydia/firmware.ver
+    echo 6 >/var/lib/cydia/firmware.ver
 fi
index 6a30cac65019ebe5910c08ead68933fe34df0655..a59c8ead582c89895e892d4fe0315aec709dc934 100644 (file)
@@ -10784,7 +10784,7 @@ int main(int argc, char *argv[]) {
 
     int version([[NSString stringWithContentsOfFile:@"/var/lib/cydia/firmware.ver"] intValue]);
 
-    if (access("/User", F_OK) != 0 || version != 5) {
+    if (access("/User", F_OK) != 0 || version != 6) {
         _trace();
         system("/usr/libexec/cydia/firmware.sh");
         _trace();