Merge branch 'master' of https://github.com/MPG13/FlashBack
This commit is contained in:
commit
4b06635f11
4 changed files with 21 additions and 40 deletions
|
@ -7,7 +7,7 @@
|
|||
<key>FlashBack.xcscheme_^#shared#^_</key>
|
||||
<dict>
|
||||
<key>orderHint</key>
|
||||
<integer>0</integer>
|
||||
<integer>1</integer>
|
||||
</dict>
|
||||
</dict>
|
||||
</dict>
|
||||
|
|
BIN
FlashBack.xcworkspace/xcuserdata/micahgomez.xcuserdatad/UserInterfaceState.xcuserstate
generated
Normal file
BIN
FlashBack.xcworkspace/xcuserdata/micahgomez.xcuserdatad/UserInterfaceState.xcuserstate
generated
Normal file
Binary file not shown.
|
@ -17,7 +17,6 @@
|
|||
#import "globalVars.h"
|
||||
|
||||
|
||||
BOOL trial;
|
||||
NSArray *_backupFolderArray;
|
||||
NSString *_backupDirectory;
|
||||
NSMutableString *selectedBackupImageURL;
|
||||
|
@ -197,8 +196,6 @@ NSString *backupNameSelected;
|
|||
|
||||
- (IBAction)packageBackup:(id)sender {
|
||||
|
||||
if (trial == NO){
|
||||
|
||||
if (backupNameSelected == nil){
|
||||
|
||||
UIAlertController * selectBackupAlert= [UIAlertController
|
||||
|
@ -247,20 +244,6 @@ NSString *backupNameSelected;
|
|||
|
||||
[self presentViewController:packageBackupAlert animated:YES completion:nil];
|
||||
}
|
||||
}
|
||||
|
||||
else{
|
||||
|
||||
UIAlertController * noBackupDEBAlert = [UIAlertController
|
||||
alertControllerWithTitle:@"Creating DEBs is only available in the full version"
|
||||
message:@"The free trial of FlashBack doesn't allow backing up setups to DEBs. Purchase the full version on PackIX for $1.50 for this!"
|
||||
preferredStyle:UIAlertControllerStyleAlert];
|
||||
|
||||
[noBackupDEBAlert addAction:[UIAlertAction okAction]];
|
||||
|
||||
[self presentViewController:noBackupDEBAlert animated:YES completion:nil];
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
- (IBAction)deleteBackup:(id)sender {
|
||||
|
@ -342,27 +325,6 @@ NSString *backupNameSelected;
|
|||
//_backupFolderArray = @[@"one",@"two",@"three"];
|
||||
_backupFolderArray = [[NSFileManager defaultManager] contentsOfDirectoryAtPath:@"/Library/FlashBack/Backups/" error:nil];
|
||||
|
||||
// MARK: DRM From @Kushdabush, commenting out for testing
|
||||
//pulled from https://github.com/DomienF/kushy-drm/blob/master/Tweak.xm
|
||||
|
||||
if ([[NSFileManager defaultManager] fileExistsAtPath:@"/var/lib/dpkg/info/com.mpg13.flashback.list"]){
|
||||
NSLog(@"FlashBack DRM Passed");
|
||||
trial = NO;
|
||||
} else {
|
||||
NSLog(@"DRM failed");
|
||||
|
||||
UIAlertController * failedDRMAlert = [UIAlertController
|
||||
alertControllerWithTitle:@"FlashBack appears to be pirated :("
|
||||
message:@"For your own safety, download FlashBack from the official source! If you're seeing this, then it means that whoever is distributing this copy is either sharing a ripped version that is potentially dangerous, or they have forgotten to remove this warning for yours, and their own protection."
|
||||
preferredStyle:UIAlertControllerStyleAlert];
|
||||
[failedDRMAlert addAction:[UIAlertAction okAction]];
|
||||
|
||||
dispatch_async(dispatch_get_main_queue(), ^ {
|
||||
[self presentViewController:failedDRMAlert animated:YES completion:nil];
|
||||
});
|
||||
}
|
||||
|
||||
trial = NO;
|
||||
}
|
||||
|
||||
-(void)pickerView:(UIPickerView *)pickerView didSelectRow:(NSInteger)row inComponent:(NSInteger)component{
|
||||
|
|
19
Pods/Pods.xcodeproj/xcuserdata/micahgomez.xcuserdatad/xcschemes/xcschememanagement.plist
generated
Normal file
19
Pods/Pods.xcodeproj/xcuserdata/micahgomez.xcuserdatad/xcschemes/xcschememanagement.plist
generated
Normal file
|
@ -0,0 +1,19 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>SchemeUserState</key>
|
||||
<dict>
|
||||
<key>Pods-FlashBack.xcscheme_^#shared#^_</key>
|
||||
<dict>
|
||||
<key>orderHint</key>
|
||||
<integer>0</integer>
|
||||
</dict>
|
||||
<key>SDWebImage.xcscheme_^#shared#^_</key>
|
||||
<dict>
|
||||
<key>orderHint</key>
|
||||
<integer>2</integer>
|
||||
</dict>
|
||||
</dict>
|
||||
</dict>
|
||||
</plist>
|
Reference in a new issue