notaz.gp2x.de
/
pcsx_rearmed.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
cdriso: simplify read code
[pcsx_rearmed.git]
/
libpcsxcore
/
cheat.h
diff --git
a/libpcsxcore/cheat.h
b/libpcsxcore/cheat.h
index
d54f22c
..
b3d8bc4
100644
(file)
--- a/
libpcsxcore/cheat.h
+++ b/
libpcsxcore/cheat.h
@@
-26,6
+26,7
@@
extern "C" {
typedef struct {
uint32_t Addr;
uint16_t Val;
typedef struct {
uint32_t Addr;
uint16_t Val;
+ uint16_t OldVal;
} CheatCode;
typedef struct {
} 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 First; // index of the first cheat code
int n; // number of cheat codes for this cheat
int Enabled;
+ int WasEnabled;
} Cheat;
void ClearAllCheats();
} Cheat;
void ClearAllCheats();
@@
-87,6
+89,9
@@
extern s8 *prevM;
extern u32 *SearchResults;
extern int NumSearchResults;
extern u32 *SearchResults;
extern int NumSearchResults;
+extern int NumCheatsAllocated;
+extern int NumCodesAllocated;
+
#define PREVM(mem) (&prevM[mem])
#define PrevMu8(mem) (*(u8 *)PREVM(mem))
#define PrevMu16(mem) (SWAP16(*(u16 *)PREVM(mem)))
#define PREVM(mem) (&prevM[mem])
#define PrevMu8(mem) (*(u8 *)PREVM(mem))
#define PrevMu16(mem) (SWAP16(*(u16 *)PREVM(mem)))