Add copyright message to gles_video
[gpsp.git] / cheats.h
CommitLineData
2823a4c8 1/* gameplaySP
2 *
3 * Copyright (C) 2006 Exophase <exophase@gmail.com>
4 *
5 * This program is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU General Public License as
7 * published by the Free Software Foundation; either version 2 of
8 * the License, or (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18 */
19
20#define CHEAT_NAME_LENGTH 17
21
22typedef enum
23{
24 CHEAT_TYPE_GAMESHARK_V1,
25 CHEAT_TYPE_GAMESHARK_V3,
26 CHEAT_TYPE_INVALID
27} cheat_variant_enum;
28
29typedef struct
30{
bbba3209 31 char cheat_name[CHEAT_NAME_LENGTH];
2823a4c8 32 u32 cheat_active;
33 u32 cheat_codes[256];
34 u32 num_cheat_lines;
35 cheat_variant_enum cheat_variant;
36} cheat_type;
37
38void process_cheats();
bbba3209 39void add_cheats(char *cheats_filename);
2823a4c8 40
41#define MAX_CHEATS 16
42
43extern cheat_type cheats[MAX_CHEATS];
44extern u32 num_cheats;