forked from ttwj/ClutchMod
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcrack.h
40 lines (34 loc) · 1017 Bytes
/
crack.h
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
37
38
39
40
#import "Configuration.h"
#import "dump.h"
#import "scinfo.h"
#include <sys/types.h>
#include <sys/sysctl.h>
#import <sys/stat.h>
#import <utime.h>
#import "out.h"
#import "ZipArchive.h"
int overdrive_enabled;
int only_armv7;
int only_armv6;
int bash;
int compression_level;
NSString *bash_script;
#define FAT_CIGAM 0xbebafeca
#define MH_MAGIC 0xfeedface
#define CLUTCH_VERSION "ClutchMod 0.1 (Clutch 1.2.4)"
#define ARMV6 6
#define ARMV7 9
NSString * crack_application(NSString *application_basedir, NSString *basename, NSString *version);
NSString * init_crack_binary(NSString *application_basedir, NSString *bdir, NSString *workingDir, NSDictionary *infoplist);
NSString * crack_binary(NSString *binaryPath, NSString *finalPath, NSString **error);
NSString * genRandStringLength(int len);
ZipArchive * createZip(NSString *file);
void zip(ZipArchive *zip, NSString *folder);
int get_local_arch();
struct fat_arch {
uint32_t cputype;
uint32_t cpusubtype;
uint32_t offset;
uint32_t size;
uint32_t align;
};