From: Jay Freeman (saurik) Date: Thu, 1 Apr 2010 03:02:05 +0000 (+0000) Subject: Add backwards compatibility mode for Icons/SMS.png, remove English_ in not SummerBoar... X-Git-Tag: v0.9.3900~31 X-Git-Url: https://git.saurik.com/winterboard.git/commitdiff_plain/24ba43eea737d1c6345d6f6a46169a90a9265e0c Add backwards compatibility mode for Icons/SMS.png, remove English_ in not SummerBoard Mode, fix UIImages, and update pincrush dependency. --- diff --git a/Dim Wallpaper.theme/Info.plist b/Dim Wallpaper.theme/Info.plist new file mode 100644 index 0000000..2518892 --- /dev/null +++ b/Dim Wallpaper.theme/Info.plist @@ -0,0 +1,8 @@ + + + + +WallpaperAlpha +0.7 + + diff --git a/Dim Wallpaper.theme/Widget.html b/Dim Wallpaper.theme/Widget.html deleted file mode 100644 index 6acba2b..0000000 --- a/Dim Wallpaper.theme/Widget.html +++ /dev/null @@ -1,20 +0,0 @@ - - - - - - - -
- diff --git a/Library.mm b/Library.mm index aa24ab8..1d6ef72 100644 --- a/Library.mm +++ b/Library.mm @@ -274,9 +274,13 @@ static NSString *$pathForIcon$(SBApplication *self) { if (![didentifier isEqualToString:identifier]) testForIcon(didentifier); + testForIcon(identifier); testForIcon(dname); + if ([identifier isEqualToString:@"com.apple.MobileSMS"]) + testForIcon(@"SMS"); + if (didentifier != nil) { testForIcon([English_ objectForKey:didentifier]); @@ -288,6 +292,7 @@ static NSString *$pathForIcon$(SBApplication *self) { if (NSString *path = $getTheme$(names)) return path; + return nil; } @@ -1619,7 +1624,9 @@ extern "C" void WBInitialize() { WBRename(SBStatusBarOperatorNameView, setOperatorName:fullSize:, setOperatorName$fullSize$); WBRename(SBStatusBarTimeView, drawRect:, drawRect$); - English_ = [[NSDictionary alloc] initWithContentsOfFile:@"/System/Library/CoreServices/SpringBoard.app/English.lproj/LocalizedApplicationNames.strings"]; + if (SummerBoard_) + English_ = [[NSDictionary alloc] initWithContentsOfFile:@"/System/Library/CoreServices/SpringBoard.app/English.lproj/LocalizedApplicationNames.strings"]; + Cache_ = [[NSMutableDictionary alloc] initWithCapacity:64]; } diff --git a/control b/control index c5bff7e..09e4f04 100644 --- a/control +++ b/control @@ -3,10 +3,10 @@ Priority: optional Section: System Maintainer: Jay Freeman (saurik) Architecture: iphoneos-arm -Version: 0.9.3151-2 +Version: 0.9.3152-1 Description: more powerful, open-source SummerBoard Name: WinterBoard -Depends: mobilesubstrate (>= 0.9.2958-1), killall, preferenceloader, libhide (>= 2.0.4), findutils, net.howett.pincrush (>= 0.0.1-23) +Depends: mobilesubstrate (>= 0.9.2958-1), killall, preferenceloader, libhide (>= 2.0.4), findutils, net.howett.pincrush (>= 0.0.1-23) | pincrush Provides: theme-manager Conflicts: com.modmyifone.winterboardicon, winterboardsettings, themesettings Replaces: com.modmyifone.winterboardicon, winterboardsettings, themesettings diff --git a/makefile b/makefile index 75594fd..9e4b07b 100644 --- a/makefile +++ b/makefile @@ -4,6 +4,8 @@ else target := $(PKG_TARG)- endif +substrate := -I../mobilesubstrate -L../mobilesubstrate -lsubstrate + all: WinterBoard WinterBoard.dylib UIImages WinterBoardSettings Optimize clean: @@ -14,11 +16,11 @@ WinterBoardSettings: Settings.mm makefile ldid -S $@ WinterBoard.dylib: Library.mm makefile ../mobilesubstrate/substrate.h - $(target)g++ -dynamiclib -g0 -O2 -Wall -o $@ $(filter %.mm,$^) -framework CoreFoundation -framework Foundation -lobjc -init _WBInitialize -I/apl/inc/iPhoneOS-2.0 -framework CoreGraphics -framework GraphicsServices -framework Celestial -I../mobilesubstrate -L../mobilesubstrate -lsubstrate -framework UIKit -F$(PKG_ROOT)/System/Library/PrivateFrameworks + $(target)g++ -dynamiclib -g0 -O2 -Wall -o $@ $(filter %.mm,$^) -framework CoreFoundation -framework Foundation -lobjc -init _WBInitialize -I/apl/inc/iPhoneOS-2.0 -framework CoreGraphics -framework GraphicsServices -framework Celestial $(substrate) -framework UIKit -F$(PKG_ROOT)/System/Library/PrivateFrameworks ldid -S $@ UIImages: UIImages.mm makefile - $(target)g++ -g0 -O2 -Wall -Werror -o $@ $(filter %.mm,$^) -framework UIKit -framework Foundation -framework CoreFoundation -lobjc -I/apl/inc/iPhoneOS-2.0 + $(target)g++ -g0 -O2 -Wall -Werror -o $@ $(filter %.mm,$^) -framework UIKit -framework Foundation -framework CoreFoundation -lobjc -I/apl/inc/iPhoneOS-2.0 $(substrate) ldid -S $@ WinterBoard: Application.mm makefile