aboutsummaryrefslogtreecommitdiff
path: root/libpcsxcore/cheat.h
diff options
context:
space:
mode:
authornotaz2012-07-23 00:29:46 +0300
committernotaz2012-07-23 00:29:46 +0300
commit2c843d964027089a747453afc0b07d0eac5835d9 (patch)
tree50cff87de84f7a4cd5dc79ed3e31eae8c64228fa /libpcsxcore/cheat.h
parent9c27c2051287b235fe0dba18a74b3863a3062646 (diff)
downloadpcsx_rearmed-2c843d964027089a747453afc0b07d0eac5835d9.tar.gz
pcsx_rearmed-2c843d964027089a747453afc0b07d0eac5835d9.tar.bz2
pcsx_rearmed-2c843d964027089a747453afc0b07d0eac5835d9.zip
cheat: add some undo logic
Diffstat (limited to 'libpcsxcore/cheat.h')
-rw-r--r--libpcsxcore/cheat.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/libpcsxcore/cheat.h b/libpcsxcore/cheat.h
index c533b93..b3d8bc4 100644
--- a/libpcsxcore/cheat.h
+++ b/libpcsxcore/cheat.h
@@ -26,6 +26,7 @@ extern "C" {
typedef struct {
uint32_t Addr;
uint16_t Val;
+ uint16_t OldVal;
} CheatCode;
typedef struct {
@@ -33,6 +34,7 @@ typedef struct {
int First; // index of the first cheat code
int n; // number of cheat codes for this cheat
int Enabled;
+ int WasEnabled;
} Cheat;
void ClearAllCheats();