blob: 5ac56e93242fbb1936f47863a5f5b5e33066dd0e (
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
|
//
// CheatController.h
// Pcsxr
//
#import <Cocoa/Cocoa.h>
#import "ARCBridge.h"
#include "psxcommon.h"
#include "cheat.h"
@class PcsxrHexadecimalFormatter;
@interface PcsxrCheatTempObject : NSObject <NSCopying>
{
uint32_t address;
uint16_t value;
}
@property (readwrite) uint32_t address;
@property (readwrite, arcweak) NSNumber* addressNS;
@property (readwrite) uint16_t value;
@property (readwrite, arcweak) NSNumber* valueNS;
- (id)initWithAddress:(uint32_t)add value:(uint16_t)val;
- (id)initWithCheatCode:(CheatCode *)theCheat;
@end
@interface PcsxrCheatTemp : NSObject
{
NSMutableArray *cheatValues;
NSString *cheatName;
BOOL enabled;
}
@property (readwrite, retain) NSMutableArray *cheatValues;
@property (readwrite, retain, nonatomic) NSString *cheatName;
@property (readwrite, getter = isEnabled) BOOL enabled;
- (id)initWithCheat:(Cheat *)theCheat;
@end
@interface CheatController : NSWindowController <NSWindowDelegate, NSTableViewDelegate>
{
IBOutlet NSTableView *cheatView;
IBOutlet NSWindow *editCheatWindow;
IBOutlet NSTableView *editCheatView;
IBOutlet PcsxrHexadecimalFormatter *addressFormatter;
IBOutlet PcsxrHexadecimalFormatter *valueFormatter;
NSMutableArray *tempCheatCodes;
NSMutableArray *cheats;
}
@property (readwrite, retain) NSMutableArray *tempCheatCodes;
@property (readwrite, retain) 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
|