blob: 2fcfbb2d721b4ab573a1613ba232b26ee4edf107 (
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
55
56
57
58
59
60
61
62
63
64
65
66
|
/*********************************************************************
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);
/* re-initialize the cheat system, reloading any cheat files */
void cheat_reload(running_machine *machine);
/* return the global enabled state of the cheat engine */
int cheat_get_global_enable(running_machine *machine);
/* globally enable or disable the cheat engine */
void cheat_set_global_enable(running_machine *machine, int enable);
/* ----- 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);
/* return the displayable comment of the current cheat */
astring *cheat_get_comment(void *entry);
#endif /* __CHEAT_H__ */
|