aboutsummaryrefslogtreecommitdiff
path: root/libpcsxcore
diff options
context:
space:
mode:
Diffstat (limited to 'libpcsxcore')
-rw-r--r--libpcsxcore/cheat.c4
-rw-r--r--libpcsxcore/cheat.h3
2 files changed, 5 insertions, 2 deletions
diff --git a/libpcsxcore/cheat.c b/libpcsxcore/cheat.c
index 21d88b8..9ce7ed8 100644
--- a/libpcsxcore/cheat.c
+++ b/libpcsxcore/cheat.c
@@ -24,11 +24,11 @@
Cheat *Cheats = NULL;
int NumCheats = 0;
-static int NumCheatsAllocated = 0;
+int NumCheatsAllocated = 0;
CheatCode *CheatCodes = NULL;
int NumCodes = 0;
-static int NumCodesAllocated = 0;
+int NumCodesAllocated = 0;
s8 *prevM = NULL;
u32 *SearchResults = NULL;
diff --git a/libpcsxcore/cheat.h b/libpcsxcore/cheat.h
index d54f22c..c533b93 100644
--- a/libpcsxcore/cheat.h
+++ b/libpcsxcore/cheat.h
@@ -87,6 +87,9 @@ extern s8 *prevM;
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)))