45 lines
755 B
C
45 lines
755 B
C
|
#ifndef __CEHAT_INCLUDED__
|
|||
|
#define __CEHAT_INCLUDED__
|
|||
|
|
|||
|
#include "typedef.h"
|
|||
|
|
|||
|
#include <string>
|
|||
|
using namespace std;
|
|||
|
|
|||
|
// <20>ȉ<EFBFBD><C889>̂Q<CC82><EFBFBD>OR<4F>}<7D>X<EFBFBD>N
|
|||
|
#define CHEAT_ENABLE (1<<0)
|
|||
|
#define CHEAT_KEYDISABLE (1<<1)
|
|||
|
|
|||
|
// <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ݎ<EFBFBD><DD8E><EFBFBD>
|
|||
|
#define CHEAT_TYPE_ALWAYS 0 // <20><><EFBFBD>ɏ<EFBFBD><C98F><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
#define CHEAT_TYPE_ONCE 1 // <20>P<EFBFBD><EFBFBD><F182BE82><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
#define CHEAT_TYPE_GREATER 2 // <20>f<EFBFBD>[<5B>^<5E><><EFBFBD><EFBFBD><EFBFBD>傫<EFBFBD><E582AB><EFBFBD><EFBFBD>
|
|||
|
#define CHEAT_TYPE_LESS 3 // <20>f<EFBFBD>[<5B>^<5E><><EFBFBD>菬<EFBFBD><E88FAC><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
|
|||
|
// <20>f<EFBFBD>[<5B>^<5E><>
|
|||
|
#define CHEAT_LENGTH_1BYTE 0
|
|||
|
#define CHEAT_LENGTH_2BYTE 1
|
|||
|
#define CHEAT_LENGTH_3BYTE 2
|
|||
|
#define CHEAT_LENGTH_4BYTE 3
|
|||
|
|
|||
|
class CHEATCODE {
|
|||
|
public:
|
|||
|
BYTE enable;
|
|||
|
BYTE type;
|
|||
|
BYTE length;
|
|||
|
WORD address;
|
|||
|
DWORD data;
|
|||
|
|
|||
|
string comment;
|
|||
|
};
|
|||
|
|
|||
|
class GENIECODE {
|
|||
|
public:
|
|||
|
WORD address;
|
|||
|
BYTE data;
|
|||
|
BYTE cmp;
|
|||
|
};
|
|||
|
|
|||
|
#endif // !__CEHAT_INCLUDED__
|
|||
|
|