-
Notifications
You must be signed in to change notification settings - Fork 40
/
SSFLEXLoaderMain.m
36 lines (27 loc) · 926 Bytes
/
SSFLEXLoaderMain.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
//
// RHDownloadReveal.m
// RHDownloadReveal
//
// Created by Richard Heard on 21/03/2014.
// Copyright (c) 2014 Richard Heard. All rights reserved.
//
#include <unistd.h>
#include <sys/stat.h>
#include "common.h"
#include <partial/partial.h>
char endianness = IS_LITTLE_ENDIAN;
#ifdef __OBJC__
#import <Foundation/Foundation.h>
#endif
//download libReveal using partialzip
NSString *libraryPath = @"/Library/Application Support/FLEXLoader/FLEXDylib.dylib";
int main(int argc, const char *argv[], const char *envp[]){
if (argc > 1 && strcmp(argv[1], "upgrade") != 0) {
printf("SSFLEXLoader CYDIA upgrade, nuking existing %s\n", [libraryPath UTF8String]);
[[NSFileManager defaultManager] removeItemAtPath:libraryPath error:NULL];
} else {
printf("SSFLEXLoader before move file");
}
printf("================SSFLEXLoader started!!!================");
return 0;
}