m_cheat.h (425B)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 #ifndef __M_CHEAT__ 24 #define __M_CHEAT__ 25 26 27 28 29 30 #define SCRAMBLE(a) \ 31 ((((a)&1)<<7) + (((a)&2)<<5) + ((a)&4) + (((a)&8)<<1) \ 32 + (((a)&16)>>1) + ((a)&32) + (((a)&64)>>5) + (((a)&128)>>7)) 33 34 typedef struct 35 { 36 unsigned char* sequence; 37 unsigned char* p; 38 39 } cheatseq_t; 40 41 int 42 cht_CheckCheat 43 ( cheatseq_t* cht, 44 char key ); 45 46 47 void 48 cht_GetParam 49 ( cheatseq_t* cht, 50 char* buffer ); 51 52 53 #endif 54 55 56 57 58