mirror of
https://github.com/holub/mame
synced 2025-04-28 11:11:48 +03:00
a800: Reintroduced hack that causes a800 to always use the ATR format for softlists
'mame a800 -flop1 brucelee' now works again
This commit is contained in:
parent
d3b374d545
commit
2bc1a2162a
@ -143,8 +143,11 @@ void atari_fdc_device::atari_load_proc(device_image_interface &image, bool is_cr
|
|||||||
/* re allocate the buffer; we don't want to be too lazy ;) */
|
/* re allocate the buffer; we don't want to be too lazy ;) */
|
||||||
//m_drv[id].image = (UINT8*)image.image_realloc(m_drv[id].image, size);
|
//m_drv[id].image = (UINT8*)image.image_realloc(m_drv[id].image, size);
|
||||||
|
|
||||||
|
// hack alert, this means we can only load ATR via the softlist at the moment, image.filetype returns "" :/
|
||||||
|
bool is_softlist_entry = image.software_entry() != nullptr;
|
||||||
|
|
||||||
/* no extension: assume XFD format (no header) */
|
/* no extension: assume XFD format (no header) */
|
||||||
if (image.is_filetype(""))
|
if (image.is_filetype("") && !is_softlist_entry)
|
||||||
{
|
{
|
||||||
m_drv[id].type = FORMAT_XFD;
|
m_drv[id].type = FORMAT_XFD;
|
||||||
m_drv[id].header_skip = 0;
|
m_drv[id].header_skip = 0;
|
||||||
@ -158,7 +161,7 @@ void atari_fdc_device::atari_load_proc(device_image_interface &image, bool is_cr
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
/* ATR extension */
|
/* ATR extension */
|
||||||
if( image.is_filetype("atr") )
|
if( image.is_filetype("atr") || is_softlist_entry)
|
||||||
{
|
{
|
||||||
m_drv[id].type = FORMAT_ATR;
|
m_drv[id].type = FORMAT_ATR;
|
||||||
m_drv[id].header_skip = 16;
|
m_drv[id].header_skip = 16;
|
||||||
|
Loading…
Reference in New Issue
Block a user