summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/emuopts.c
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/emuopts.c
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/emuopts.c')
-rw-r--r--src/emu/emuopts.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/emu/emuopts.c b/src/emu/emuopts.c
index af5590a0d25..1af6f81d7d8 100644
--- a/src/emu/emuopts.c
+++ b/src/emu/emuopts.c
@@ -42,6 +42,7 @@ const options_entry mame_core_options[] =
{ "ctrlrpath;ctrlr_directory", "ctrlr", 0, "path to controller definitions" },
{ "inipath", ".;ini", 0, "path to ini files" },
{ "fontpath", ".", 0, "path to font files" },
+ { "cheatpath", "cheat", 0, "path to cheat files" },
/* output directory options */
{ NULL, NULL, OPTION_HEADER, "CORE OUTPUT DIRECTORY OPTIONS" },
@@ -54,10 +55,6 @@ const options_entry mame_core_options[] =
{ "diff_directory", "diff", 0, "directory to save hard drive image difference files" },
{ "comment_directory", "comments", 0, "directory to save debugger comments" },
- /* filename options */
- { NULL, NULL, OPTION_HEADER, "CORE FILENAME OPTIONS" },
- { "cheat_file", "cheat.dat", 0, "cheat filename" },
-
/* state/playback options */
{ NULL, NULL, OPTION_HEADER, "CORE STATE/PLAYBACK OPTIONS" },
{ "state", NULL, 0, "saved state to load" },