From 9c27c2051287b235fe0dba18a74b3863a3062646 Mon Sep 17 00:00:00 2001 From: notaz Date: Sun, 22 Jul 2012 22:39:53 +0300 Subject: frontend: initial cheats support --- libpcsxcore/cheat.c | 4 ++-- libpcsxcore/cheat.h | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) (limited to 'libpcsxcore') 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))) -- cgit v1.2.3