1 #ifndef _INCLUDE_CHEAT_H 2 #define _INCLUDE_CHEAT_H 3 4 #include <stdio.h> 5 #include "pce.h" 6 #include "lang.h" 7 8 char pokebyte(); 9 /* Change the value of a byte in the memory */ 10 11 char searchbyte(); 12 /* Search for a byte in memory */ 13 14 int loadgame(); 15 /* Load the progression */ 16 17 int savegame(); 18 /* Save the progression */ 19 20 #define MAX_FREEZED_VALUE 8 21 22 typedef struct { 23 unsigned short position; 24 unsigned char value; 25 } freezed_value; 26 27 extern freezed_value list_to_freeze[MAX_FREEZED_VALUE]; 28 /* List of all the value to freeze */ 29 30 extern unsigned char current_freezed_values; 31 /* Current number of values to freeze */ 32 33 int freeze_value (void); 34 35 #endif 36