forked from Sappharad/MultiPatch
-
Notifications
You must be signed in to change notification settings - Fork 0
/
PatchController.h
32 lines (28 loc) · 909 Bytes
/
PatchController.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
#import <Cocoa/Cocoa.h>
#include "mbFlipWindow.h"
typedef enum PatchTypes{
UNKNOWNPAT, UPSPAT, XDELTAPAT, IPSPAT, PPFPAT, BSDIFFPAT, BPSPAT, BPSDELTA
} PatchFormat;
@interface PatchController : NSObject{
IBOutlet id txtPatchPath;
IBOutlet id txtRomPath;
IBOutlet id txtOutputPath;
IBOutlet id lblPatchFormat;
IBOutlet id wndPatcher;
IBOutlet NSWindow *wndCreator;
IBOutlet id pnlPatching;
IBOutlet id barProgress;
IBOutlet id btnApply;
IBOutlet NSTextField *lblStatus;
PatchFormat currentFormat;
NSString* romFormat;
}
- (IBAction)btnApply:(id)sender;
- (IBAction)btnBrowse:(id)sender;
- (IBAction)btnSelectPatch:(id)sender;
- (IBAction)btnSelectOutput:(id)sender;
+ (PatchFormat)detectPatchFormat:(NSString*)patchPath;
- (NSString*)ApplyPatch:(NSString*)patchPath :(NSString*)sourceFile :(NSString*)destFile;
- (IBAction)btnCreatePatch:(id)sender;
+ (mbFlipWindow*)flipper;
@end