aboutsummaryrefslogtreecommitdiff
path: root/libpcsxcore
diff options
context:
space:
mode:
authornotaz2012-07-22 22:39:53 +0300
committernotaz2012-07-22 23:56:37 +0300
commit9c27c2051287b235fe0dba18a74b3863a3062646 (patch)
tree24754f3fac995084a08224cae848b4fc4eaf7167 /libpcsxcore
parent61f97bb0518cde50b243fba8ce2e8a907a0fc2e9 (diff)
downloadpcsx_rearmed-9c27c2051287b235fe0dba18a74b3863a3062646.tar.gz
pcsx_rearmed-9c27c2051287b235fe0dba18a74b3863a3062646.tar.bz2
pcsx_rearmed-9c27c2051287b235fe0dba18a74b3863a3062646.zip
frontend: initial cheats support
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)))