summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/mame.h
diff options
context:
space:
mode:
author Aaron Giles <aaron@aarongiles.com>2008-07-31 08:19:53 +0000
committer Aaron Giles <aaron@aarongiles.com>2008-07-31 08:19:53 +0000
commita69088c498af8933f51624ac3426edb61982a083 (patch)
tree8db91f01a597e3d9cfbb6de5363f7adf68ffeb43 /src/emu/mame.h
parent252f254ab3bd0fb91005cc9da944582b123eefe3 (diff)
Added new options 'cheatpath' to specify one or more paths for cheat
files. Removed old option 'cheat_file'. Updated xmlfile.c to specify the line number for each node, for more accurate error reporting. Removed old cheat.c/.h and replaced them with code that will read and write the new XML-based cheat format using the new cheatpath option (cheats still need to be enabled in order to load at all). Note that the cheats are not implemented yet, but they are fully parsed. To test saving, whenever a cheat file is successfully loaded, it is immediately written back out as 'output.xml' to the cheat directory for validation.
Diffstat (limited to 'src/emu/mame.h')
-rw-r--r--src/emu/mame.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/emu/mame.h b/src/emu/mame.h
index 45e92011540..de860552a90 100644
--- a/src/emu/mame.h
+++ b/src/emu/mame.h
@@ -130,6 +130,7 @@ typedef struct _streams_private streams_private;
typedef struct _devices_private devices_private;
typedef struct _input_port_private input_port_private;
typedef struct _ui_input_private ui_input_private;
+typedef struct _cheat_private cheat_private;
/* description of the currently-running machine */
@@ -167,6 +168,7 @@ struct _running_machine
devices_private * devices_data; /* internal data from devices.c */
input_port_private * input_port_data; /* internal data from inptport.c */
ui_input_private * ui_input_data; /* internal data from uiinput.c */
+ cheat_private * cheat_data; /* internal data from cheat.c */
#ifdef MESS
images_private * images_data; /* internal data from image.c */
ui_mess_private * ui_mess_data; /* internal data from uimess.c */