blob: d341ee5f6ec3ff513d9442e403686411dbeb092b (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
/*********************************************************************
cheat.h
Cheat system.
Copyright Nicola Salmoria and the MAME Team.
Visit http://mamedev.org for licensing and usage restrictions.
*********************************************************************/
#pragma once
#ifndef __CHEAT_H__
#define __CHEAT_H__
#include "mamecore.h"
/***************************************************************************
FUNCTION PROTOTYPES
***************************************************************************/
/* ----- core system management ----- */
/* initialize the cheat system, loading any cheat files */
void cheat_init(running_machine *machine);
/* ----- cheat UI helpers ----- */
/* render any text overlays */
void cheat_render_text(running_machine *machine);
/* return data about the next menu entry, or the first entry if previous == NULL */
void *cheat_get_next_menu_entry(running_machine *machine, void *previous, const char **description, const char **state, UINT32 *flags);
/* activate a oneshot cheat */
int cheat_activate(running_machine *machine, void *entry);
/* select the default menu state */
int cheat_select_default_state(running_machine *machine, void *entry);
/* select the previous menu state */
int cheat_select_previous_state(running_machine *machine, void *entry);
/* select the next menu state */
int cheat_select_next_state(running_machine *machine, void *entry);
#endif /* __CHEAT_H__ */
|