Push 1.0.1

This commit is contained in:
iostonykraft
2017-02-20 21:06:35 -05:00
parent 57ad0b687f
commit 3fc4e20952
5 changed files with 49 additions and 4 deletions

View File

@@ -30,7 +30,16 @@ static NSDictionary *settings;
return %orig;
}
- (bool)_supportsApplicationType:(int)type // this was renamed for some reason on iOS 10, had to copypasta the method but it should be okay for older versions
- (long long)_classicModeFromSplashBoard
{
NSString *key = [@"compatibility-" stringByAppendingString:self.bundleIdentifier ?: @""];
if ([[settings objectForKey:key] boolValue]) {
return 2;
}
return %orig;
}
/*- (bool)_supportsApplicationType:(int)type // this was renamed for some reason on iOS 10, had to copypasta the method but it should be okay for older versions
{
NSString *key = [@"enabled-" stringByAppendingString:self.bundleIdentifier ?: @""];
if ([[settings objectForKey:key] boolValue]) {
@@ -42,7 +51,7 @@ static NSDictionary *settings;
- (bool)classicAppScaled // maybe check if app is scaled
{
return %orig;
}
}*/
- (bool)_disablesClassicMode
{
@@ -92,7 +101,7 @@ static NSDictionary *settings;
%hook SBApplicationInfo
- (bool)_supportsApplicationType:(int)type
/*- (bool)_supportsApplicationType:(int)type
{
NSString *key = [@"enabled-" stringByAppendingString:self.bundleIdentifier ?: @""];
if ([[settings objectForKey:key] boolValue]) {
@@ -100,7 +109,7 @@ static NSDictionary *settings;
}
return %orig;
}
*/
%end
static void LoadSettings(void)

View File

@@ -9,6 +9,8 @@
<string>PSGroupCell</string>
<key>label</key>
<string>General</string>
<key>footerText</key>
<string>For apps that look distorted when enabled, try Compatibility Mode instead.</string>
</dict>
<dict>
<key>cell</key>
@@ -32,6 +34,28 @@
<key>ALChangeNotification</key>
<string>com.tonykraft.perfectfit.prefschanged</string>
</dict>
<dict>
<key>cell</key>
<string>PSLinkCell</string>
<key>bundle</key>
<string>AppList</string>
<key>isController</key>
<string>1</string>
<key>label</key>
<string>Compatibility Mode</string>
<key>ALAllowsSelection</key>
<string>1</string>
<key>ALSettingsKeyPrefix</key>
<string>compatibility-</string>
<key>ALSettingsDefaultValue</key>
<string>0</string>
<key>ALSettingsPath</key>
<string>/var/mobile/Library/Preferences/com.tonykraft.perfectfit.plist</string>
<key>ALSingleEnabledMode</key>
<false/>
<key>ALChangeNotification</key>
<string>com.tonykraft.perfectfit.prefschanged</string>
</dict>
<dict>
<key>cell</key>
<string>PSGroupCell</string>
@@ -59,6 +83,14 @@
<string>Donate</string>
<key>icon</key>
<string>paypal@2x.png</string>
</dict>
<dict>
<key>cell</key>
<string>PSButtonCell</string>
<key>action</key>
<string>credits</string>
<key>label</key>
<string>Credits</string>
</dict>
</array>
<key>title</key>

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.1 KiB

View File

@@ -34,6 +34,10 @@
-(void)paypal {
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=MMVWTGG8SRESU&lc=US&item_name=PerfectFit%20Tweak&currency_code=USD&bn=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHosted"]];
}
- (void)credits {
UIAlertView *alert1 = [[UIAlertView alloc]initWithTitle:@"Credits" message:@"Thanks to /u/Topbrowse for the icon!" delegate:self cancelButtonTitle:@"Ok" otherButtonTitles:nil];
[alert1 show];
}
@end