blob: 04b00a465e9cfdfe2bb86a84f4f96c227f4aaac4 (
plain) (
blame)
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
41
42
43
44
45
46
47
48
49
50
51
52
53
|
//
// CheatController.h
// Pcsxr
//
#import <Cocoa/Cocoa.h>
#import "PcsxrHexadecimalFormatter.h"
#include "psxcommon.h"
#include "cheat.h"
@interface PcsxrCheatTempObject : NSObject <NSCopying>
@property (readwrite) uint32_t cheatAddress;
@property (readwrite) uint16_t cheatValue;
- (instancetype)initWithAddress:(uint32_t)add value:(uint16_t)val NS_DESIGNATED_INITIALIZER;
- (instancetype)initWithCheatCode:(CheatCode *)theCheat;
@end
@interface PcsxrCheatTemp : NSObject
@property (readwrite, strong) NSMutableArray *cheatValues;
@property (readwrite, strong) NSString *cheatName;
@property (readwrite, getter = isEnabled) BOOL enabled;
- (instancetype)initWithCheat:(Cheat *)theCheat NS_DESIGNATED_INITIALIZER;
@end
@interface CheatController : NSWindowController <NSWindowDelegate, NSTableViewDelegate>
@property (weak) IBOutlet NSTableView *cheatView;
@property (weak) IBOutlet NSWindow *editCheatWindow;
@property (weak) IBOutlet NSTableView *editCheatView;
@property (weak) IBOutlet PcsxrHexadecimalFormatter *addressFormatter;
@property (weak) IBOutlet PcsxrHexadecimalFormatter *valueFormatter;
@property (readwrite, strong) NSMutableArray *tempCheatCodes;
@property (readwrite, strong) NSMutableArray *cheats;
- (void)refresh;
- (IBAction)saveCheats:(id)sender;
- (IBAction)loadCheats:(id)sender;
- (IBAction)clear:(id)sender;
- (IBAction)editCheat:(id)sender;
- (IBAction)addCheat:(id)sender;
- (IBAction)applyCheats:(id)sender;
- (IBAction)removeCheats:(id)sender;
- (IBAction)changeCheat:(id)sender;
- (IBAction)closeCheatEdit:(id)sender;
- (IBAction)removeCheatValue:(id)sender;
- (IBAction)addCheatValue:(id)sender;
@end
|