AxibugEmuOnline/References/virtuanessrc097-master/NES/Cheat.h

45 lines
1.5 KiB
C
Raw Normal View History

<EFBFBD><EFBFBD>#ifndef __CEHAT_INCLUDED__
#define __CEHAT_INCLUDED__
#include "typedef.h"
#include <string>
using namespace std;
// <EFBFBD>N Nn0<EFBFBD>d0o0OR<EFBFBD>0<EFBFBD>0<EFBFBD>0
#define CHEAT_ENABLE (1<<0)
#define CHEAT_KEYDISABLE (1<<1)
// <EFBFBD>fM0<EFBFBD><EFBFBD>0.z^<EFBFBD>
#define CHEAT_TYPE_ALWAYS 0 // 8^k0<EFBFBD>fM0<EFBFBD><EFBFBD>0
#define CHEAT_TYPE_ONCE 1 // <EFBFBD><EFBFBD>V`0Q0<EFBFBD>fM0<EFBFBD><EFBFBD>0
#define CHEAT_TYPE_GREATER 2 // <EFBFBD>0<EFBFBD>0<EFBFBD>0<EFBFBD>0<EFBFBD>0'YM0D0Bf
#define CHEAT_TYPE_LESS 3 // <EFBFBD>0<EFBFBD>0<EFBFBD>0<EFBFBD>0<EFBFBD>0\U0D0Bf
// <EFBFBD>0<EFBFBD>0<EFBFBD>0w<EFBFBD>
#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__