2009-05-21 17:48:31 +02:00
|
|
|
/* gameplaySP
|
|
|
|
*
|
|
|
|
* Copyright (C) 2006 Exophase <exophase@gmail.com>
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License as
|
|
|
|
* published by the Free Software Foundation; either version 2 of
|
|
|
|
* the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
|
|
|
*/
|
|
|
|
|
2021-05-05 02:20:00 +02:00
|
|
|
#ifndef __GPSP_CHEATS_H__
|
|
|
|
#define __GPSP_CHEATS_H__
|
2009-05-21 17:48:31 +02:00
|
|
|
|
2021-05-05 02:20:00 +02:00
|
|
|
#define MAX_CHEATS 20
|
|
|
|
#define MAX_CHEAT_CODES 64
|
2009-05-21 17:48:31 +02:00
|
|
|
|
2021-05-05 18:07:55 +02:00
|
|
|
typedef enum {
|
|
|
|
CheatNoError = 0,
|
|
|
|
CheatErrorTooMany,
|
|
|
|
CheatErrorTooBig,
|
|
|
|
CheatErrorEncrypted,
|
|
|
|
CheatErrorNotSupported
|
|
|
|
} cheat_error;
|
|
|
|
|
2014-12-10 15:47:19 +01:00
|
|
|
void process_cheats(void);
|
2021-05-05 18:07:55 +02:00
|
|
|
cheat_error cheat_parse(unsigned index, const char *code);
|
|
|
|
void cheat_clear(void);
|
2021-05-05 02:20:00 +02:00
|
|
|
|
|
|
|
extern u32 cheat_master_hook;
|
2009-05-21 17:48:31 +02:00
|
|
|
|
2021-05-05 02:20:00 +02:00
|
|
|
#endif
|
2009-05-21 17:48:31 +02:00
|
|
|
|