Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
alexbevi
GitHub Repository: alexbevi/BizHawk
Path: blob/master/libsnes/bsnes/snes/cheat/cheat.hpp
2 views
1
struct CheatCode {
2
unsigned addr;
3
unsigned data;
4
};
5
6
struct Cheat : public linear_vector<CheatCode> {
7
uint8 *override;
8
9
bool enabled() const;
10
void enable(bool);
11
void synchronize();
12
uint8 read(unsigned) const;
13
void init();
14
15
Cheat();
16
~Cheat();
17
18
static bool decode(const string&, unsigned&, unsigned&);
19
20
private:
21
bool system_enabled;
22
bool code_enabled;
23
bool cheat_enabled;
24
unsigned mirror(unsigned) const;
25
};
26
27
extern Cheat cheat;
28
29