diff options
author | 2008-08-13 15:09:08 +0000 | |
---|---|---|
committer | 2008-08-13 15:09:08 +0000 | |
commit | a0574bb47397fd9af67ab4cadd43f9194cc0b98c (patch) | |
tree | 5174276a11753f32d1c85fdb02e6e091829c4511 /src/emu/romload.c | |
parent | 16903498a4330981899e6a5943127b835ec39f42 (diff) |
Moved several include files from mame/ to emu/, as they were
included by generic components in emu/ and thus should have no
dependencies on the MAME code.
Added new target ldplayer, which is based on MAME but serves as
a standalone laserdisc player for CHDs. Right now only the
Pioneer LD-V1000 is connected, and limited commands are available.
Each player type is a driver, so you specify the player type on
the command-line. The driver then opens the first CHD it finds
in your ROM path and uses that as the laserdisc. The intention is
that you specify the -rompath each time on the command-line, so
a typical approach might be:
ldplayer ldv1000 -rompath j:\mach3
where it will pick up the mach3.chd lurking in your j:\mach3
folder. Several basic commands are supported:
Space = play/pause
Alt = toggle frame display
Left = scan forward (when playing) or step forward (when paused)
Right = scan backward (when playing) or step backward (when paused)
0-9 = enter numbers for search
Enter = execute search to frame
Diffstat (limited to 'src/emu/romload.c')
-rw-r--r-- | src/emu/romload.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/emu/romload.c b/src/emu/romload.c index b53918c3866..54e4fe5f907 100644 --- a/src/emu/romload.c +++ b/src/emu/romload.c @@ -79,6 +79,21 @@ chd_file *get_disk_handle(const char *region) } +void set_disk_handle(const char *region, mame_file *file, chd_file *chdfile) +{ + open_chd chd = { 0 }; + + /* note the region we are in */ + chd.region = region; + chd.origchd = chdfile; + chd.origfile = file; + + /* we're okay, add to the list of disks */ + *chd_list_tailptr = auto_malloc(sizeof(**chd_list_tailptr)); + **chd_list_tailptr = chd; + chd_list_tailptr = &(*chd_list_tailptr)->next; +} + /*************************************************************************** ROM LOADING |