From a0574bb47397fd9af67ab4cadd43f9194cc0b98c Mon Sep 17 00:00:00 2001 From: Aaron Giles Date: Wed, 13 Aug 2008 15:09:08 +0000 Subject: 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 --- src/ldplayer/ldpdriv.c | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 src/ldplayer/ldpdriv.c (limited to 'src/ldplayer/ldpdriv.c') diff --git a/src/ldplayer/ldpdriv.c b/src/ldplayer/ldpdriv.c new file mode 100644 index 00000000000..c25b3ad2343 --- /dev/null +++ b/src/ldplayer/ldpdriv.c @@ -0,0 +1,43 @@ +/****************************************************************************** + + ldpdriv.c + + mamedriv.c substitute file for "ldplayer" MAME builds. + + Copyright Nicola Salmoria and the MAME Team. + Visit http://mamedev.org for licensing and usage restrictions. + + The list of used drivers. Drivers have to be included here to be recognized + by the executable. + + To save some typing, we use a hack here. This file is recursively #included + twice, with different definitions of the DRIVER() macro. The first one + declares external references to the drivers; the second one builds an array + storing all the drivers. + +******************************************************************************/ + +#include "driver.h" + +#ifndef DRIVER_RECURSIVE + +#define DRIVER_RECURSIVE + +/* step 1: declare all external references */ +#define DRIVER(NAME) extern game_driver driver_##NAME; +#include "ldpdriv.c" + +/* step 2: define the drivers[] array */ +#undef DRIVER +#define DRIVER(NAME) &driver_##NAME, +const game_driver * const drivers[] = +{ +#include "ldpdriv.c" + 0 /* end of array */ +}; + +#else /* DRIVER_RECURSIVE */ + + DRIVER( ldv1000 ) /* Pioneer LD-V1000 */ + +#endif /* DRIVER_RECURSIVE */ -- cgit v1.2.3