summaryrefslogtreecommitdiffstatshomepage
path: root/src/ldplayer
diff options
context:
space:
mode:
author Aaron Giles <aaron@aarongiles.com>2011-03-03 17:05:24 +0000
committer Aaron Giles <aaron@aarongiles.com>2011-03-03 17:05:24 +0000
commit06ee6804dd5d1157a079e02d46abb6612571f21f (patch)
tree831cd82cc7cf6d493e6b5e9a7bf7d956733cf663 /src/ldplayer
parente870e8d7bce1bda126a3ea06391d587dc9b57f01 (diff)
Converted core_options to a class. Removed a bunch of marginal
functionality in favor of alternate mechanisms. Errors are now reported via an astring rather than via callbacks. Every option must now specify a type (command, integer, float, string, boolean, etc). Command behavior has changed so that only one command is permitted. [Aaron Giles] Changed fileio system to accept just a raw searchpath instead of an options/option name combination. [Aaron Giles] Created emu_options class dervied from core_options which wraps core emulator options. Added mechanisms to cleanly change the system name and add/remove system-specific options, versus the old way using callbacks. Also added read accessors for all the options, to ensure consistency in how parameters are handled. Changed most core systems to access emu_options instead of core_options. Also changed machine->options() to return emu_options. [Aaron Giles] Created cli_options class derived from emu_options which adds the command-line specific options. Updated clifront code to leverage the new class and the new core behaviors. cli_execute() now accepts a cli_options object when called. [Aaron Giles] Updated both SDL and Windows to have their own options classes, derived from cli_options, which add the OSD-specific options on top of everything else. Added accessors for all the options so that queries are strongly typed and simplified. [Aaron Giles] Out of whatsnew: I've surely screwed up some stuff, though I have smoke tested a bunch of things. Let me know if you hit anything odd. Also I know this change will impact the WINUI stuff, please let me know if there are issues. All the functionality necessary should still be present. If it's not obvious, please talk to me before adding stuff to the core_options class.
Diffstat (limited to 'src/ldplayer')
-rw-r--r--src/ldplayer/ldplayer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ldplayer/ldplayer.c b/src/ldplayer/ldplayer.c
index 5bb899b4033..97e47a00c01 100644
--- a/src/ldplayer/ldplayer.c
+++ b/src/ldplayer/ldplayer.c
@@ -93,7 +93,7 @@ static chd_file *get_disc(device_t *device)
chd_file *image_chd = NULL;
/* open a path to the ROMs and find the first CHD file */
- file_enumerator path(device->machine->options(), OPTION_ROMPATH);
+ file_enumerator path(device->machine->options().media_path());
const osd_directory_entry *dir;
/* iterate while we get new objects */
@@ -112,7 +112,7 @@ static chd_file *get_disc(device_t *device)
chd_error chderr;
/* open the file itself via our search path */
- image_file = auto_alloc(device->machine, emu_file(device->machine->options(), SEARCHPATH_IMAGE, OPEN_FLAG_READ));
+ image_file = auto_alloc(device->machine, emu_file(device->machine->options().media_path(), OPEN_FLAG_READ));
filerr = image_file->open(dir->name);
if (filerr == FILERR_NONE)
{