rlm@1
|
1 #if !defined(AFX_GBACHEATS_H__FC31D47D_52C8_42B2_95C7_7C3FD09316A4__INCLUDED_)
|
rlm@1
|
2 #define AFX_GBACHEATS_H__FC31D47D_52C8_42B2_95C7_7C3FD09316A4__INCLUDED_
|
rlm@1
|
3
|
rlm@1
|
4 #if _MSC_VER > 1000
|
rlm@1
|
5 #pragma once
|
rlm@1
|
6 #endif // _MSC_VER > 1000
|
rlm@1
|
7 // GBACheatsDlg.h : header file
|
rlm@1
|
8 //
|
rlm@1
|
9
|
rlm@1
|
10 /////////////////////////////////////////////////////////////////////////////
|
rlm@1
|
11 // GBACheatSearch dialog
|
rlm@1
|
12
|
rlm@1
|
13 struct WinCheatsData
|
rlm@1
|
14 {
|
rlm@1
|
15 u32 addr;
|
rlm@1
|
16 char address[9];
|
rlm@1
|
17 char oldValue[12];
|
rlm@1
|
18 char newValue[12];
|
rlm@1
|
19 };
|
rlm@1
|
20
|
rlm@1
|
21 class GBACheatSearch : public CDialog
|
rlm@1
|
22 {
|
rlm@1
|
23 // Construction
|
rlm@1
|
24 public:
|
rlm@1
|
25 afx_msg void OnSizeType(UINT id);
|
rlm@1
|
26 afx_msg void OnNumberType(UINT id);
|
rlm@1
|
27 afx_msg void OnSearchType(UINT id);
|
rlm@1
|
28 afx_msg void OnValueType(UINT id);
|
rlm@1
|
29 void addChange(int index, u32 address, u32 oldValue, u32 newValue);
|
rlm@1
|
30 GBACheatSearch(CWnd*pParent = NULL); // standard constructor
|
rlm@1
|
31 ~GBACheatSearch();
|
rlm@1
|
32
|
rlm@1
|
33 // Dialog Data
|
rlm@1
|
34 //{{AFX_DATA(GBACheatSearch)
|
rlm@1
|
35 enum { IDD = IDD_CHEATS };
|
rlm@1
|
36 CEdit m_value;
|
rlm@1
|
37 CListCtrl m_list;
|
rlm@1
|
38 int valueType;
|
rlm@1
|
39 int sizeType;
|
rlm@1
|
40 int searchType;
|
rlm@1
|
41 int numberType;
|
rlm@1
|
42 BOOL updateValues;
|
rlm@1
|
43 //}}AFX_DATA
|
rlm@1
|
44
|
rlm@1
|
45 // Overrides
|
rlm@1
|
46 // ClassWizard generated virtual function overrides
|
rlm@1
|
47 //{{AFX_VIRTUAL(GBACheatSearch)
|
rlm@1
|
48 protected:
|
rlm@1
|
49 virtual void DoDataExchange(CDataExchange*pDX); // DDX/DDV support
|
rlm@1
|
50 //}}AFX_VIRTUAL
|
rlm@1
|
51
|
rlm@1
|
52 // Implementation
|
rlm@1
|
53 protected:
|
rlm@1
|
54 // Generated message map functions
|
rlm@1
|
55 //{{AFX_MSG(GBACheatSearch)
|
rlm@1
|
56 afx_msg void OnOk();
|
rlm@1
|
57 afx_msg void OnStart();
|
rlm@1
|
58 afx_msg void OnSearch();
|
rlm@1
|
59 afx_msg void OnAddCheat();
|
rlm@1
|
60 afx_msg void OnUpdate();
|
rlm@1
|
61 afx_msg void OnGetdispinfoCheatList(NMHDR*pNMHDR, LRESULT*pResult);
|
rlm@1
|
62 afx_msg void OnItemchangedCheatList(NMHDR*pNMHDR, LRESULT*pResult);
|
rlm@1
|
63 virtual BOOL OnInitDialog();
|
rlm@1
|
64 //}}AFX_MSG
|
rlm@1
|
65 DECLARE_MESSAGE_MAP()
|
rlm@1
|
66 private:
|
rlm@1
|
67 void addChanges(bool showMsgs);
|
rlm@1
|
68 WinCheatsData *data;
|
rlm@1
|
69 public:
|
rlm@1
|
70 afx_msg void OnClose();
|
rlm@1
|
71 afx_msg void OnBnClickedCheatrefreshbutton();
|
rlm@1
|
72 };
|
rlm@1
|
73
|
rlm@1
|
74 /////////////////////////////////////////////////////////////////////////////
|
rlm@1
|
75 // AddCheat dialog
|
rlm@1
|
76
|
rlm@1
|
77 class AddCheat : public CDialog
|
rlm@1
|
78 {
|
rlm@1
|
79 // Construction
|
rlm@1
|
80 public:
|
rlm@1
|
81 bool addCheat();
|
rlm@1
|
82 afx_msg void OnSizeType(UINT id);
|
rlm@1
|
83 afx_msg void OnNumberType(UINT id);
|
rlm@1
|
84 AddCheat(u32 address, CWnd*pParent = NULL); // standard constructor
|
rlm@1
|
85
|
rlm@1
|
86 // Dialog Data
|
rlm@1
|
87 //{{AFX_DATA(AddCheat)
|
rlm@1
|
88 enum { IDD = IDD_ADD_CHEAT };
|
rlm@1
|
89 CEdit m_value;
|
rlm@1
|
90 CEdit m_desc;
|
rlm@1
|
91 CEdit m_address;
|
rlm@1
|
92 int sizeType;
|
rlm@1
|
93 int numberType;
|
rlm@1
|
94 //}}AFX_DATA
|
rlm@1
|
95
|
rlm@1
|
96 // Overrides
|
rlm@1
|
97 // ClassWizard generated virtual function overrides
|
rlm@1
|
98 //{{AFX_VIRTUAL(AddCheat)
|
rlm@1
|
99 protected:
|
rlm@1
|
100 virtual void DoDataExchange(CDataExchange*pDX); // DDX/DDV support
|
rlm@1
|
101 //}}AFX_VIRTUAL
|
rlm@1
|
102
|
rlm@1
|
103 // Implementation
|
rlm@1
|
104 protected:
|
rlm@1
|
105 u32 address;
|
rlm@1
|
106
|
rlm@1
|
107 // Generated message map functions
|
rlm@1
|
108 //{{AFX_MSG(AddCheat)
|
rlm@1
|
109 afx_msg void OnOk();
|
rlm@1
|
110 afx_msg void OnCancel();
|
rlm@1
|
111 virtual BOOL OnInitDialog();
|
rlm@1
|
112 //}}AFX_MSG
|
rlm@1
|
113 DECLARE_MESSAGE_MAP()
|
rlm@1
|
114 };
|
rlm@1
|
115 /////////////////////////////////////////////////////////////////////////////
|
rlm@1
|
116 // GBACheatList dialog
|
rlm@1
|
117
|
rlm@1
|
118 class GBACheatList : public CDialog
|
rlm@1
|
119 {
|
rlm@1
|
120 // Construction
|
rlm@1
|
121 public:
|
rlm@1
|
122 void refresh();
|
rlm@1
|
123 GBACheatList(CWnd*pParent = NULL); // standard constructor
|
rlm@1
|
124
|
rlm@1
|
125 // Dialog Data
|
rlm@1
|
126 //{{AFX_DATA(GBACheatList)
|
rlm@1
|
127 enum { IDD = IDD_CHEAT_LIST };
|
rlm@1
|
128 CButton m_restore;
|
rlm@1
|
129 CListCtrl m_list;
|
rlm@1
|
130 //}}AFX_DATA
|
rlm@1
|
131
|
rlm@1
|
132 // Overrides
|
rlm@1
|
133 // ClassWizard generated virtual function overrides
|
rlm@1
|
134 //{{AFX_VIRTUAL(GBACheatList)
|
rlm@1
|
135 protected:
|
rlm@1
|
136 virtual void DoDataExchange(CDataExchange*pDX); // DDX/DDV support
|
rlm@1
|
137 //}}AFX_VIRTUAL
|
rlm@1
|
138
|
rlm@1
|
139 // Implementation
|
rlm@1
|
140 protected:
|
rlm@1
|
141 bool duringRefresh;
|
rlm@1
|
142 bool restoreValues;
|
rlm@1
|
143
|
rlm@1
|
144 // Generated message map functions
|
rlm@1
|
145 //{{AFX_MSG(GBACheatList)
|
rlm@1
|
146 afx_msg void OnAddCheat();
|
rlm@1
|
147 afx_msg void OnAddCode();
|
rlm@1
|
148 afx_msg void OnAddCodebreaker();
|
rlm@1
|
149 afx_msg void OnAddGameshark();
|
rlm@1
|
150 afx_msg void OnEnable();
|
rlm@1
|
151 afx_msg void OnRemove();
|
rlm@1
|
152 afx_msg void OnRemoveAll();
|
rlm@1
|
153 afx_msg void OnRestore();
|
rlm@1
|
154 afx_msg void OnOk();
|
rlm@1
|
155 afx_msg void OnItemchangedCheatList(NMHDR*pNMHDR, LRESULT*pResult);
|
rlm@1
|
156 virtual BOOL OnInitDialog();
|
rlm@1
|
157 //}}AFX_MSG
|
rlm@1
|
158 DECLARE_MESSAGE_MAP()
|
rlm@1
|
159 };
|
rlm@1
|
160 /////////////////////////////////////////////////////////////////////////////
|
rlm@1
|
161 // AddGSACode dialog
|
rlm@1
|
162
|
rlm@1
|
163 class AddGSACode : public CDialog
|
rlm@1
|
164 {
|
rlm@1
|
165 // Construction
|
rlm@1
|
166 public:
|
rlm@1
|
167 AddGSACode(CWnd*pParent = NULL); // standard constructor
|
rlm@1
|
168
|
rlm@1
|
169 // Dialog Data
|
rlm@1
|
170 //{{AFX_DATA(AddGSACode)
|
rlm@1
|
171 enum { IDD = IDD_ADD_CHEAT_DLG };
|
rlm@1
|
172 CEdit m_desc;
|
rlm@1
|
173 CEdit m_code;
|
rlm@1
|
174 //}}AFX_DATA
|
rlm@1
|
175
|
rlm@1
|
176 // Overrides
|
rlm@1
|
177 // ClassWizard generated virtual function overrides
|
rlm@1
|
178 //{{AFX_VIRTUAL(AddGSACode)
|
rlm@1
|
179 protected:
|
rlm@1
|
180 virtual void DoDataExchange(CDataExchange*pDX); // DDX/DDV support
|
rlm@1
|
181 //}}AFX_VIRTUAL
|
rlm@1
|
182
|
rlm@1
|
183 // Implementation
|
rlm@1
|
184 protected:
|
rlm@1
|
185 // Generated message map functions
|
rlm@1
|
186 //{{AFX_MSG(AddGSACode)
|
rlm@1
|
187 afx_msg void OnOk();
|
rlm@1
|
188 afx_msg void OnCancel();
|
rlm@1
|
189 virtual BOOL OnInitDialog();
|
rlm@1
|
190 //}}AFX_MSG
|
rlm@1
|
191 DECLARE_MESSAGE_MAP()
|
rlm@1
|
192 };
|
rlm@1
|
193
|
rlm@1
|
194 /////////////////////////////////////////////////////////////////////////////
|
rlm@1
|
195 // AddCBACode dialog
|
rlm@1
|
196
|
rlm@1
|
197 class AddCBACode : public CDialog
|
rlm@1
|
198 {
|
rlm@1
|
199 // Construction
|
rlm@1
|
200 public:
|
rlm@1
|
201 AddCBACode(CWnd*pParent = NULL); // standard constructor
|
rlm@1
|
202
|
rlm@1
|
203 // Dialog Data
|
rlm@1
|
204 //{{AFX_DATA(AddCBACode)
|
rlm@1
|
205 enum { IDD = IDD_ADD_CHEAT_DLG };
|
rlm@1
|
206 CEdit m_desc;
|
rlm@1
|
207 CEdit m_code;
|
rlm@1
|
208 //}}AFX_DATA
|
rlm@1
|
209
|
rlm@1
|
210 // Overrides
|
rlm@1
|
211 // ClassWizard generated virtual function overrides
|
rlm@1
|
212 //{{AFX_VIRTUAL(AddCBACode)
|
rlm@1
|
213 protected:
|
rlm@1
|
214 virtual void DoDataExchange(CDataExchange*pDX); // DDX/DDV support
|
rlm@1
|
215 //}}AFX_VIRTUAL
|
rlm@1
|
216
|
rlm@1
|
217 // Implementation
|
rlm@1
|
218 protected:
|
rlm@1
|
219 // Generated message map functions
|
rlm@1
|
220 //{{AFX_MSG(AddCBACode)
|
rlm@1
|
221 afx_msg void OnOk();
|
rlm@1
|
222 afx_msg void OnCancel();
|
rlm@1
|
223 virtual BOOL OnInitDialog();
|
rlm@1
|
224 //}}AFX_MSG
|
rlm@1
|
225 DECLARE_MESSAGE_MAP()
|
rlm@1
|
226 };
|
rlm@1
|
227
|
rlm@1
|
228 /////////////////////////////////////////////////////////////////////////////
|
rlm@1
|
229 // AddCheatCode dialog
|
rlm@1
|
230
|
rlm@1
|
231 class AddCheatCode : public CDialog
|
rlm@1
|
232 {
|
rlm@1
|
233 // Construction
|
rlm@1
|
234 public:
|
rlm@1
|
235 AddCheatCode(CWnd*pParent = NULL); // standard constructor
|
rlm@1
|
236
|
rlm@1
|
237 // Dialog Data
|
rlm@1
|
238 //{{AFX_DATA(AddCheatCode)
|
rlm@1
|
239 enum { IDD = IDD_ADD_CHEAT_DLG };
|
rlm@1
|
240 CEdit m_desc;
|
rlm@1
|
241 CEdit m_code;
|
rlm@1
|
242 //}}AFX_DATA
|
rlm@1
|
243
|
rlm@1
|
244 // Overrides
|
rlm@1
|
245 // ClassWizard generated virtual function overrides
|
rlm@1
|
246 //{{AFX_VIRTUAL(AddCheatCode)
|
rlm@1
|
247 protected:
|
rlm@1
|
248 virtual void DoDataExchange(CDataExchange*pDX); // DDX/DDV support
|
rlm@1
|
249 //}}AFX_VIRTUAL
|
rlm@1
|
250
|
rlm@1
|
251 // Implementation
|
rlm@1
|
252 protected:
|
rlm@1
|
253 // Generated message map functions
|
rlm@1
|
254 //{{AFX_MSG(AddCheatCode)
|
rlm@1
|
255 afx_msg void OnOk();
|
rlm@1
|
256 afx_msg void OnCancel();
|
rlm@1
|
257 virtual BOOL OnInitDialog();
|
rlm@1
|
258 //}}AFX_MSG
|
rlm@1
|
259 DECLARE_MESSAGE_MAP()
|
rlm@1
|
260 };
|
rlm@1
|
261 //{{AFX_INSERT_LOCATION}}
|
rlm@1
|
262 // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
|
rlm@1
|
263
|
rlm@1
|
264 #endif // !defined(AFX_GBACHEATS_H__FC31D47D_52C8_42B2_95C7_7C3FD09316A4__INCLUDED_)
|