Skip to content

Commit

Permalink
Version 2.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
rA9stuff authored Aug 2, 2021
1 parent 7e1ac17 commit d2c4283
Show file tree
Hide file tree
Showing 28 changed files with 434 additions and 167 deletions.
Binary file modified LDResources/Bootlogos/5s.img4
Binary file not shown.
Binary file modified LDResources/Bootlogos/ipad.img4
Binary file not shown.
Binary file modified LeetDown.xcodeproj.zip
Binary file not shown.
2 changes: 1 addition & 1 deletion LeetDown_M/AppDelegate.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// AppDelegate.h
// LeetDown_M
//
// Created by Barış Ulaş Çukur on 12.07.2021.
// Created by rA9stuff on 12.07.2021.
//

#import <Cocoa/Cocoa.h>
Expand Down
2 changes: 1 addition & 1 deletion LeetDown_M/AppDelegate.m
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// AppDelegate.m
// LeetDown_M
//
// Created by Barış Ulaş Çukur on 12.07.2021.
// Created by rA9stuff on 12.07.2021.
//

#import "AppDelegate.h"
Expand Down
20 changes: 10 additions & 10 deletions LeetDown_M/Assets.xcassets/AppIcon.appiconset/Contents.json
Original file line number Diff line number Diff line change
@@ -1,61 +1,61 @@
{
"images" : [
{
"filename" : "circle-cropped.png",
"filename" : "circle-cropped-11.png",
"idiom" : "mac",
"scale" : "1x",
"size" : "16x16"
},
{
"filename" : "circle-cropped-10.png",
"filename" : "circle-cropped-12.png",
"idiom" : "mac",
"scale" : "2x",
"size" : "16x16"
},
{
"filename" : "circle-cropped-2.png",
"filename" : "circle-cropped-13.png",
"idiom" : "mac",
"scale" : "1x",
"size" : "32x32"
},
{
"filename" : "circle-cropped-3.png",
"filename" : "circle-cropped-14.png",
"idiom" : "mac",
"scale" : "2x",
"size" : "32x32"
},
{
"filename" : "circle-cropped-4.png",
"filename" : "circle-cropped-15.png",
"idiom" : "mac",
"scale" : "1x",
"size" : "128x128"
},
{
"filename" : "circle-cropped-9.png",
"filename" : "circle-cropped-16.png",
"idiom" : "mac",
"scale" : "2x",
"size" : "128x128"
},
{
"filename" : "circle-cropped-5.png",
"filename" : "circle-cropped-17.png",
"idiom" : "mac",
"scale" : "1x",
"size" : "256x256"
},
{
"filename" : "circle-cropped-8.png",
"filename" : "circle-cropped-18.png",
"idiom" : "mac",
"scale" : "2x",
"size" : "256x256"
},
{
"filename" : "circle-cropped-6.png",
"filename" : "circle-cropped-19.png",
"idiom" : "mac",
"scale" : "1x",
"size" : "512x512"
},
{
"filename" : "circle-cropped-7.png",
"filename" : "circle-cropped-20.png",
"idiom" : "mac",
"scale" : "2x",
"size" : "512x512"
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
21 changes: 21 additions & 0 deletions LeetDown_M/Assets.xcassets/homebuttonimage.imageset/Contents.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"images" : [
{
"filename" : "homebuttonimage.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"idiom" : "universal",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
21 changes: 21 additions & 0 deletions LeetDown_M/Assets.xcassets/iphoneDFU.imageset/Contents.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"images" : [
{
"filename" : "iphoneDFU.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"idiom" : "universal",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
21 changes: 21 additions & 0 deletions LeetDown_M/Assets.xcassets/lockbutton.imageset/Contents.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"images" : [
{
"filename" : "lockbutton.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"idiom" : "universal",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
251 changes: 141 additions & 110 deletions LeetDown_M/Base.lproj/Main.storyboard

Large diffs are not rendered by default.

25 changes: 25 additions & 0 deletions LeetDown_M/DFUHelperViewController.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
//
// DFUHelperViewController.h
// LeetDown
//
// Created by rA9stuff on 1.08.2021.
//

#import <Cocoa/Cocoa.h>

@interface DFUHelperViewController : NSViewController
@property (assign) IBOutlet NSTextField *getreadytext;
@property (assign) IBOutlet NSTextField *getreadyCounter;
@property (assign) IBOutlet NSImageView *lockbuttonimage;
@property (assign) IBOutlet NSImageView *homebuttonimage;
@property (assign) IBOutlet NSTextField *firstcounter;
@property (assign) IBOutlet NSTextField *secondcounter;
@property (assign) IBOutlet NSTextField *firsttext;
@property (assign) IBOutlet NSTextField *secondtext;
@property (assign) IBOutlet NSImageView *iphonepic;
@property (assign) IBOutlet NSButton *startbutton;
@property (assign) IBOutlet NSButton *cancelout;



@end
121 changes: 121 additions & 0 deletions LeetDown_M/DFUHelperViewController.m
Original file line number Diff line number Diff line change
@@ -0,0 +1,121 @@
//
// DFUHelperViewController.m
// LeetDown
//
// Created by rA9stuff on 1.08.2021.
//

#import "DFUHelperViewController.h"
#import "ViewController.h"

@implementation DFUHelperViewController

- (IBAction)cancel:(id)sender {

dispatch_async(dispatch_get_main_queue(), ^(){
[self.view.window.contentViewController dismissViewController:self];
});

}

- (IBAction)startbutton:(id)sender {


_startbutton.enabled = false;
_startbutton.alphaValue = 0;
_getreadyCounter.alphaValue = 1;
_getreadytext.alphaValue = 1;
_iphonepic.alphaValue = 0.5;
_firsttext.alphaValue = 0.3;
_secondtext.alphaValue = 0.3;
_firstcounter.alphaValue = 0.3;
_secondcounter.alphaValue = 0.3;
_homebuttonimage.alphaValue = 0;
_lockbuttonimage.alphaValue = 0;

dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{

for (int i = 5; i > 0; i--) {
dispatch_async(dispatch_get_main_queue(), ^(){
_getreadyCounter.stringValue = [NSString stringWithFormat:@"%d", i];
});
sleep(1);
}
dispatch_async(dispatch_get_main_queue(), ^(){
_getreadyCounter.stringValue = @"0";
_getreadyCounter.alphaValue = 0.3;
_getreadytext.alphaValue = 0.3;
});

for (int i = 0; i < 100; i++) {
dispatch_async(dispatch_get_main_queue(), ^(){
_lockbuttonimage.alphaValue = 0.01*i;
_homebuttonimage.alphaValue = 0.01*i;
});
usleep(1000);
}

dispatch_async(dispatch_get_main_queue(), ^(){
_firsttext.alphaValue = 1;
_firstcounter.alphaValue = 1;
});

for (int i = 10; i > 0; i--) {
dispatch_async(dispatch_get_main_queue(), ^(){
_firstcounter.stringValue = [[NSString stringWithFormat:@"%d", i] stringByAppendingString:@" seconds"];
});
sleep(1);
}

dispatch_async(dispatch_get_main_queue(), ^(){
_firstcounter.stringValue = @"0 seconds";
});
dispatch_async(dispatch_get_main_queue(), ^(){
_firsttext.alphaValue = 0.3;
_firstcounter.alphaValue = 0.3;
_secondtext.alphaValue = 1;
_secondcounter.alphaValue = 1;
_lockbuttonimage.alphaValue = 0;
});

for (int i = 10; i > 0; i--) {
dispatch_async(dispatch_get_main_queue(), ^(){
_secondcounter.stringValue = [[NSString stringWithFormat:@"%d", i] stringByAppendingString:@" seconds"];
});
sleep(1);
}
dispatch_async(dispatch_get_main_queue(), ^(){
[self.view.window.contentViewController dismissViewController:self];
});
complete = true;
});

if (complete) {

}

}
bool complete = false;
- (void) viewDidLoad {

[super viewDidLoad];


_getreadyCounter.alphaValue = 0.1;
_getreadytext.alphaValue = 0.1;
_iphonepic.alphaValue = 0.1;
_firsttext.alphaValue = 0.1;
_secondtext.alphaValue = 0.1;
_firstcounter.alphaValue = 0.1;
_secondcounter.alphaValue = 0.1;
_homebuttonimage.alphaValue = 0;
_lockbuttonimage.alphaValue = 0;
_homebuttonimage.image = [NSImage imageNamed:@"homebuttonimage"];





}

@end
3 changes: 2 additions & 1 deletion LeetDown_M/ViewController.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// ViewController.h
// LeetDown_M
//
// Created by Barış Ulaş Çukur on 12.07.2021.
// Created by rA9stuff on 12.07.2021.
//

#import <Cocoa/Cocoa.h>
Expand All @@ -20,6 +20,7 @@
@property (weak) IBOutlet NSTextField *ramiel;
@property (weak) IBOutlet NSButton *downgradeButtonOut;
@property (weak) IBOutlet NSProgressIndicator *uselessIndicator;
@property (assign) IBOutlet NSButton *dfuhelpoutlet;


@end
Expand Down
Loading

0 comments on commit d2c4283

Please sign in to comment.