From 46ea60b680f9a979384353bcdd8437e48d27965f Mon Sep 17 00:00:00 2001 From: spacy51 Date: Fri, 18 Jan 2008 19:33:05 +0000 Subject: [PATCH] INCREASE maximum number of GBA cheats to 1000 (was 100) git-svn-id: https://svn.code.sf.net/p/vbam/code/trunk@319 a31d4220-a93d-0410-bf67-fe4944624d44 --- src/Cheats.cpp | 4 ++-- src/Cheats.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Cheats.cpp b/src/Cheats.cpp index 147c3f1c..9b6e728b 100644 --- a/src/Cheats.cpp +++ b/src/Cheats.cpp @@ -196,7 +196,7 @@ #define CHEATS_16_BIT_WRITE 114 #define CHEATS_32_BIT_WRITE 115 -CheatsData cheatsList[100]; +CheatsData cheatsList[1000]; int cheatsNumber = 0; u32 rompatch2addr [4]; u16 rompatch2val [4]; @@ -1332,7 +1332,7 @@ void cheatsAdd(const char *codeStr, int code, int size) { - if(cheatsNumber < 100) { + if(cheatsNumber < 1000) { int x = cheatsNumber; cheatsList[x].code = code; cheatsList[x].size = size; diff --git a/src/Cheats.h b/src/Cheats.h index ce966872..096a38d2 100644 --- a/src/Cheats.h +++ b/src/Cheats.h @@ -51,5 +51,5 @@ extern void cheatsWriteHalfWord(u32, u16); extern void cheatsWriteByte(u32, u8); extern int cheatsCheckKeys(u32,u32); extern int cheatsNumber; -extern CheatsData cheatsList[100]; +extern CheatsData cheatsList[1000]; #endif // GBA_CHEATS_H