Build fix on linux.
[dolphin.git] / Source / Core / Core / Src / GeckoCode.h
blob8073b18096c97a74cc2ec138e600cfa6ad3279e4
2 #ifndef __GECKOCODE_h__
3 #define __GECKOCODE_h__
5 #include "Common.h"
7 #include <vector>
8 #include <string>
10 namespace Gecko
13 class GeckoCode
15 public:
17 GeckoCode() : enabled(false) {}
19 struct Code
21 union
23 u32 address;
25 struct
27 u32 gcaddress : 25;
28 u32 subtype: 3;
29 u32 use_po : 1;
30 u32 type: 3;
33 struct
35 u32 n : 4;
36 u32 z : 12;
37 u32 y : 4;
38 u32 t : 4;
39 //u32 s : 4;
40 //u32 : 4;
41 };// subsubtype;
44 union
46 u32 data;
47 //struct
48 //{
49 //
50 //};
53 u32 GetAddress() const;
56 std::vector<Code> codes;
57 std::string name, description, creator;
59 bool enabled;
62 void SetActiveCodes(const std::vector<GeckoCode>& gcodes);
63 bool RunActiveCodes();
65 } // namespace Gecko
67 #endif