INCREASE maximum number of cheats to 1000 (was 100)

This commit is contained in:
spacy51 2008-01-18 19:20:24 +00:00
parent 7ddcaf433c
commit 80e1736fa7
2 changed files with 4 additions and 4 deletions

View File

@ -29,7 +29,7 @@
#include "gbGlobals.h" #include "gbGlobals.h"
#include "gb.h" #include "gb.h"
gbCheat gbCheatList[100]; gbCheat gbCheatList[1000];
int gbCheatNumber = 0; int gbCheatNumber = 0;
int gbNextCheat = 0; int gbNextCheat = 0;
bool gbCheatMap[0x10000]; bool gbCheatMap[0x10000];
@ -187,7 +187,7 @@ bool gbVerifyGsCode(const char *code)
void gbAddGsCheat(const char *code, const char *desc) void gbAddGsCheat(const char *code, const char *desc)
{ {
if(gbCheatNumber > 99) { if(gbCheatNumber > 999) {
systemMessage(MSG_MAXIMUM_NUMBER_OF_CHEATS, systemMessage(MSG_MAXIMUM_NUMBER_OF_CHEATS,
N_("Maximum number of cheats reached.")); N_("Maximum number of cheats reached."));
return; return;
@ -305,7 +305,7 @@ bool gbVerifyGgCode(const char *code)
void gbAddGgCheat(const char *code, const char *desc) void gbAddGgCheat(const char *code, const char *desc)
{ {
if(gbCheatNumber > 99) { if(gbCheatNumber > 999) {
systemMessage(MSG_MAXIMUM_NUMBER_OF_CHEATS, systemMessage(MSG_MAXIMUM_NUMBER_OF_CHEATS,
N_("Maximum number of cheats reached.")); N_("Maximum number of cheats reached."));
return; return;

View File

@ -53,7 +53,7 @@ extern u8 gbCheatRead(u16);
extern void gbCheatWrite(bool); extern void gbCheatWrite(bool);
extern int gbCheatNumber; extern int gbCheatNumber;
extern gbCheat gbCheatList[100]; extern gbCheat gbCheatList[1000];
extern bool gbCheatMap[0x10000]; extern bool gbCheatMap[0x10000];
#endif #endif