1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
#ifndef __CHEAT_H_ #define __CHEAT_H_ #include <stdlib.h> struct cheat { const char *name; const char *info; int enabled; const char *code; }; struct cheats { int enabled; size_t count; struct cheat *cheats; }; struct cheats *cheats_load(const char *filename); void cheats_free(struct cheats *cheats); #endif