REVERTED increased code list size
git-svn-id: https://svn.code.sf.net/p/vbam/code/trunk@331 a31d4220-a93d-0410-bf67-fe4944624d44
This commit is contained in:
parent
604d8f54b2
commit
92198f10d5
|
@ -196,7 +196,7 @@
|
||||||
#define CHEATS_16_BIT_WRITE 114
|
#define CHEATS_16_BIT_WRITE 114
|
||||||
#define CHEATS_32_BIT_WRITE 115
|
#define CHEATS_32_BIT_WRITE 115
|
||||||
|
|
||||||
CheatsData cheatsList[1000];
|
CheatsData cheatsList[100];
|
||||||
int cheatsNumber = 0;
|
int cheatsNumber = 0;
|
||||||
u32 rompatch2addr [4];
|
u32 rompatch2addr [4];
|
||||||
u16 rompatch2val [4];
|
u16 rompatch2val [4];
|
||||||
|
@ -1332,7 +1332,7 @@ void cheatsAdd(const char *codeStr,
|
||||||
int code,
|
int code,
|
||||||
int size)
|
int size)
|
||||||
{
|
{
|
||||||
if(cheatsNumber < 1000) {
|
if(cheatsNumber < 100) {
|
||||||
int x = cheatsNumber;
|
int x = cheatsNumber;
|
||||||
cheatsList[x].code = code;
|
cheatsList[x].code = code;
|
||||||
cheatsList[x].size = size;
|
cheatsList[x].size = size;
|
||||||
|
|
|
@ -51,5 +51,5 @@ extern void cheatsWriteHalfWord(u32, u16);
|
||||||
extern void cheatsWriteByte(u32, u8);
|
extern void cheatsWriteByte(u32, u8);
|
||||||
extern int cheatsCheckKeys(u32,u32);
|
extern int cheatsCheckKeys(u32,u32);
|
||||||
extern int cheatsNumber;
|
extern int cheatsNumber;
|
||||||
extern CheatsData cheatsList[1000];
|
extern CheatsData cheatsList[100];
|
||||||
#endif // GBA_CHEATS_H
|
#endif // GBA_CHEATS_H
|
||||||
|
|
|
@ -29,7 +29,7 @@
|
||||||
#include "gbGlobals.h"
|
#include "gbGlobals.h"
|
||||||
#include "gb.h"
|
#include "gb.h"
|
||||||
|
|
||||||
gbCheat gbCheatList[1000];
|
gbCheat gbCheatList[100];
|
||||||
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)
|
||||||
|
|
||||||
bool gbAddGsCheat(const char *code, const char *desc)
|
bool gbAddGsCheat(const char *code, const char *desc)
|
||||||
{
|
{
|
||||||
if(gbCheatNumber > 999) {
|
if(gbCheatNumber > 99) {
|
||||||
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 false;
|
return false;
|
||||||
|
@ -307,7 +307,7 @@ bool gbVerifyGgCode(const char *code)
|
||||||
|
|
||||||
bool gbAddGgCheat(const char *code, const char *desc)
|
bool gbAddGgCheat(const char *code, const char *desc)
|
||||||
{
|
{
|
||||||
if(gbCheatNumber > 999) {
|
if(gbCheatNumber > 99) {
|
||||||
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 false;
|
return false;
|
||||||
|
|
|
@ -56,7 +56,7 @@ bool gbVerifyGgCode(const char *code);
|
||||||
|
|
||||||
|
|
||||||
extern int gbCheatNumber;
|
extern int gbCheatNumber;
|
||||||
extern gbCheat gbCheatList[1000];
|
extern gbCheat gbCheatList[100];
|
||||||
extern bool gbCheatMap[0x10000];
|
extern bool gbCheatMap[0x10000];
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue