mirror of
https://github.com/holub/mame
synced 2025-05-23 22:20:01 +03:00
Temp fix compile (offending code will be ported to a MESS-specific file at the very end)
This commit is contained in:
parent
c329379caa
commit
8dd3a9eb4d
@ -270,8 +270,10 @@ a tilemap-like structure, from which data is copied)
|
||||
#include "includes/megadriv.h"
|
||||
#include "cpu/sh2/sh2.h"
|
||||
#include "cpu/sh2/sh2comn.h"
|
||||
#include "devices/chd_cd.h"
|
||||
#include "sound/cdda.h"
|
||||
#ifdef MESS
|
||||
#include "devices/chd_cd.h"
|
||||
#endif
|
||||
|
||||
#define MEGADRIV_VDP_VRAM(address) megadrive_vdp_vram[(address)&0x7fff]
|
||||
|
||||
@ -396,6 +398,7 @@ static struct
|
||||
UINT8 ext;
|
||||
UINT8 ctrl;
|
||||
}segacd_cdd;
|
||||
#ifdef MESS
|
||||
static struct
|
||||
{
|
||||
UINT32 current_frame;
|
||||
@ -405,6 +408,7 @@ static struct
|
||||
cdrom_file *cd;
|
||||
const cdrom_toc* toc;
|
||||
}segacd;
|
||||
#endif
|
||||
|
||||
static void segacd_mark_tiles_dirty(running_machine* machine, int offset);
|
||||
|
||||
@ -4717,6 +4721,7 @@ static MACHINE_RESET( segacd )
|
||||
|
||||
/* init cd-rom device */
|
||||
|
||||
#ifdef MESS
|
||||
{
|
||||
running_device *device;
|
||||
|
||||
@ -4734,6 +4739,7 @@ static MACHINE_RESET( segacd )
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
@ -4951,6 +4957,7 @@ static const char *const segacd_cdd_get_toc_cmd[] =
|
||||
"Invalid 0xF",
|
||||
};
|
||||
|
||||
#ifdef MESS
|
||||
static void segacd_cdd_get_status(running_machine *machine)
|
||||
{
|
||||
// ...
|
||||
@ -5033,11 +5040,14 @@ static void segacd_cdd_get_toc_info(running_machine *machine)
|
||||
cdd_hock_irq(machine,1);
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
static WRITE8_HANDLER( segacd_cdd_tx_w )
|
||||
{
|
||||
//printf("CDD Communication write %02x -> [%02x]\n",data,offset);
|
||||
segacd_cdd_tx[offset] = data & 0xf;
|
||||
|
||||
#ifdef MESS
|
||||
if(offset == 9) //execute the command when crc is sent (TODO: I wonder if we need to check if crc is valid. Plus obviously this shouldn't be instant)
|
||||
{
|
||||
logerror("CDD: command %s issued\n",segacd_cdd_cmd[segacd_cdd_tx[0] & 0xf]);
|
||||
@ -5050,6 +5060,7 @@ static WRITE8_HANDLER( segacd_cdd_tx_w )
|
||||
//default: logerror("CDD: unhandled command %s issued\n",segacd_cdd_cmd[segacd_cdd_tx[0] & 0xf]);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
@ -8223,7 +8234,9 @@ MACHINE_CONFIG_DERIVED( genesis_scd, megadriv )
|
||||
MDRV_SOUND_ROUTE( 0, "lspeaker", 1.00 )
|
||||
MDRV_SOUND_ROUTE( 1, "rspeaker", 1.00 )
|
||||
|
||||
#ifdef MESS
|
||||
MDRV_CDROM_ADD( "cdrom" )
|
||||
#endif
|
||||
MACHINE_CONFIG_END
|
||||
|
||||
MACHINE_CONFIG_DERIVED( genesis_32x_scd, genesis_32x )
|
||||
@ -8235,7 +8248,9 @@ MACHINE_CONFIG_DERIVED( genesis_32x_scd, genesis_32x )
|
||||
MDRV_SOUND_ROUTE( 0, "lspeaker", 1.00 )
|
||||
MDRV_SOUND_ROUTE( 1, "rspeaker", 1.00 )
|
||||
|
||||
#ifdef MESS
|
||||
MDRV_CDROM_ADD( "cdrom" )
|
||||
#endif
|
||||
MACHINE_CONFIG_END
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user