device_image_interface::call_softlist_load() was a virtual function where every implementation was one of two copy-and-paste jobs. This change consolidates all of these implementations, replacing that virtual function with a mere hook that chooses which technique to perform

This commit is contained in:
Nathan Woods 2016-07-21 21:10:18 -04:00
parent 85d9536cdb
commit ae5dab64d7
105 changed files with 105 additions and 537 deletions

View File

@ -494,16 +494,6 @@ void a78_cart_slot_device::call_unload()
/*-------------------------------------------------
call softlist load
-------------------------------------------------*/
bool a78_cart_slot_device::call_softlist_load(software_list_device &swlist, const char *swname, const rom_entry *start_entry)
{
machine().rom_load().load_software_part_region(*this, swlist, swname, start_entry);
return TRUE;
}
/*-------------------------------------------------
verify_header - check the image (from fullpath)
has an admissible header

View File

@ -96,7 +96,7 @@ public:
// image-level overrides
virtual bool call_load() override;
virtual void call_unload() override;
virtual bool call_softlist_load(software_list_device &swlist, const char *swname, const rom_entry *start_entry) override;
virtual softlist_type get_softlist_type() const override { return softlist_type::ROM; }
int get_cart_type() { return m_type; };
bool has_cart() { return m_cart != nullptr; }

View File

@ -303,16 +303,6 @@ void a800_cart_slot_device::call_unload()
{
}
/*-------------------------------------------------
call softlist load
-------------------------------------------------*/
bool a800_cart_slot_device::call_softlist_load(software_list_device &swlist, const char *swname, const rom_entry *start_entry)
{
machine().rom_load().load_software_part_region(*this, swlist, swname, start_entry);
return TRUE;
}
/*-------------------------------------------------
identify_cart_type - code to detect cart type from
fullpath

View File

@ -96,7 +96,7 @@ public:
// image-level overrides
virtual bool call_load() override;
virtual void call_unload() override;
virtual bool call_softlist_load(software_list_device &swlist, const char *swname, const rom_entry *start_entry) override;
virtual softlist_type get_softlist_type() const override { return softlist_type::ROM; }
int get_cart_type() { return m_type; };
int identify_cart_type(UINT8 *header);

View File

@ -108,18 +108,6 @@ bool adam_expansion_slot_device::call_load()
}
//-------------------------------------------------
// call_softlist_load -
//-------------------------------------------------
bool adam_expansion_slot_device::call_softlist_load(software_list_device &swlist, const char *swname, const rom_entry *start_entry)
{
machine().rom_load().load_software_part_region(*this, swlist, swname, start_entry);
return true;
}
//-------------------------------------------------
// get_default_card_software -
//-------------------------------------------------

View File

@ -73,7 +73,7 @@ protected:
// image-level overrides
virtual bool call_load() override;
virtual bool call_softlist_load(software_list_device &swlist, const char *swname, const rom_entry *start_entry) override;
virtual softlist_type get_softlist_type() const override { return softlist_type::ROM; }
virtual iodevice_t image_type() const override { return IO_CARTSLOT; }

View File

@ -206,17 +206,6 @@ bool apf_cart_slot_device::call_load()
}
/*-------------------------------------------------
call softlist load
-------------------------------------------------*/
bool apf_cart_slot_device::call_softlist_load(software_list_device &swlist, const char *swname, const rom_entry *start_entry)
{
machine().rom_load().load_software_part_region(*this, swlist, swname, start_entry);
return TRUE;
}
/*-------------------------------------------------
get default card software
-------------------------------------------------*/

View File

@ -67,7 +67,7 @@ public:
// image-level overrides
virtual bool call_load() override;
virtual void call_unload() override {}
virtual bool call_softlist_load(software_list_device &swlist, const char *swname, const rom_entry *start_entry) override;
virtual softlist_type get_softlist_type() const override { return softlist_type::ROM; }
int get_type() { return m_type; }

View File

@ -214,18 +214,6 @@ bool arcadia_cart_slot_device::call_load()
}
/*-------------------------------------------------
call softlist load
-------------------------------------------------*/
bool arcadia_cart_slot_device::call_softlist_load(software_list_device &swlist, const char *swname, const rom_entry *start_entry)
{
machine().rom_load().load_software_part_region(*this, swlist, swname, start_entry);
return TRUE;
}
/*-------------------------------------------------
get default card software
-------------------------------------------------*/

View File

@ -58,7 +58,7 @@ public:
// image-level overrides
virtual bool call_load() override;
virtual void call_unload() override {}
virtual bool call_softlist_load(software_list_device &swlist, const char *swname, const rom_entry *start_entry) override;
virtual softlist_type get_softlist_type() const override { return softlist_type::ROM; }
int get_type() { return m_type; }

View File

@ -183,17 +183,6 @@ bool astrocade_cart_slot_device::call_load()
}
/*-------------------------------------------------
call softlist load
-------------------------------------------------*/
bool astrocade_cart_slot_device::call_softlist_load(software_list_device &swlist, const char *swname, const rom_entry *start_entry)
{
machine().rom_load().load_software_part_region(*this, swlist, swname, start_entry);
return TRUE;
}
/*-------------------------------------------------
get default card software
-------------------------------------------------*/

View File

@ -58,7 +58,7 @@ public:
// image-level overrides
virtual bool call_load() override;
virtual void call_unload() override {}
virtual bool call_softlist_load(software_list_device &swlist, const char *swname, const rom_entry *start_entry) override;
virtual softlist_type get_softlist_type() const override { return softlist_type::ROM; }
int get_type() { return m_type; }

View File

@ -201,18 +201,6 @@ bool c64_expansion_slot_device::call_load()
}
//-------------------------------------------------
// call_softlist_load -
//-------------------------------------------------
bool c64_expansion_slot_device::call_softlist_load(software_list_device &swlist, const char *swname, const rom_entry *start_entry)
{
machine().rom_load().load_software_part_region(*this, swlist, swname, start_entry);
return true;
}
//-------------------------------------------------
// get_default_card_software -
//-------------------------------------------------

View File

@ -135,7 +135,7 @@ protected:
// image-level overrides
virtual bool call_load() override;
virtual bool call_softlist_load(software_list_device &swlist, const char *swname, const rom_entry *start_entry) override;
virtual softlist_type get_softlist_type() const override { return softlist_type::ROM; }
virtual iodevice_t image_type() const override { return IO_CARTSLOT; }

View File

@ -139,18 +139,6 @@ bool cbm2_expansion_slot_device::call_load()
}
//-------------------------------------------------
// call_softlist_load -
//-------------------------------------------------
bool cbm2_expansion_slot_device::call_softlist_load(software_list_device &swlist, const char *swname, const rom_entry *start_entry)
{
machine().rom_load().load_software_part_region(*this, swlist, swname, start_entry);
return true;
}
//-------------------------------------------------
// get_default_card_software -
//-------------------------------------------------

View File

@ -82,7 +82,7 @@ protected:
// image-level overrides
virtual bool call_load() override;
virtual bool call_softlist_load(software_list_device &swlist, const char *swname, const rom_entry *start_entry) override;
virtual softlist_type get_softlist_type() const override { return softlist_type::ROM; }
virtual iodevice_t image_type() const override { return IO_CARTSLOT; }

View File

@ -201,18 +201,6 @@ bool channelf_cart_slot_device::call_load()
}
/*-------------------------------------------------
call softlist load
-------------------------------------------------*/
bool channelf_cart_slot_device::call_softlist_load(software_list_device &swlist, const char *swname, const rom_entry *start_entry)
{
machine().rom_load().load_software_part_region(*this, swlist, swname, start_entry);
return TRUE;
}
/*-------------------------------------------------
get default card software
-------------------------------------------------*/

View File

@ -70,7 +70,7 @@ public:
// image-level overrides
virtual bool call_load() override;
virtual void call_unload() override {}
virtual bool call_softlist_load(software_list_device &swlist, const char *swname, const rom_entry *start_entry) override;
virtual softlist_type get_softlist_type() const override { return softlist_type::ROM; }
int get_type() { return m_type; }

View File

@ -347,18 +347,6 @@ bool cococart_slot_device::call_load()
//-------------------------------------------------
// call_softlist_load
//-------------------------------------------------
bool cococart_slot_device::call_softlist_load(software_list_device &swlist, const char *swname, const rom_entry *start_entry)
{
machine().rom_load().load_software_part_region(*this, swlist, swname, start_entry );
return TRUE;
}
//-------------------------------------------------
// get_default_card_software
//-------------------------------------------------

View File

@ -88,7 +88,7 @@ public:
// image-level overrides
virtual bool call_load() override;
virtual bool call_softlist_load(software_list_device &swlist, const char *swname, const rom_entry *start_entry) override;
virtual softlist_type get_softlist_type() const override { return softlist_type::ROM; }
virtual iodevice_t image_type() const override { return IO_CARTSLOT; }

View File

@ -96,18 +96,6 @@ bool colecovision_cartridge_slot_device::call_load()
}
//-------------------------------------------------
// call_softlist_load -
//-------------------------------------------------
bool colecovision_cartridge_slot_device::call_softlist_load(software_list_device &swlist, const char *swname, const rom_entry *start_entry)
{
machine().rom_load().load_software_part_region(*this, swlist, swname, start_entry);
return true;
}
//-------------------------------------------------
// get_default_card_software -
//-------------------------------------------------

View File

@ -79,7 +79,7 @@ protected:
// image-level overrides
virtual bool call_load() override;
virtual bool call_softlist_load(software_list_device &swlist, const char *swname, const rom_entry *start_entry) override;
virtual softlist_type get_softlist_type() const override { return softlist_type::ROM; }
virtual iodevice_t image_type() const override { return IO_CARTSLOT; }

View File

@ -214,17 +214,6 @@ bool crvision_cart_slot_device::call_load()
}
/*-------------------------------------------------
call softlist load
-------------------------------------------------*/
bool crvision_cart_slot_device::call_softlist_load(software_list_device &swlist, const char *swname, const rom_entry *start_entry)
{
machine().rom_load().load_software_part_region(*this, swlist, swname, start_entry);
return TRUE;
}
/*-------------------------------------------------
get default card software
-------------------------------------------------*/

View File

@ -63,7 +63,7 @@ public:
// image-level overrides
virtual bool call_load() override;
virtual void call_unload() override {}
virtual bool call_softlist_load(software_list_device &swlist, const char *swname, const rom_entry *start_entry) override;
virtual softlist_type get_softlist_type() const override { return softlist_type::ROM; }
int get_type() { return m_type; }

View File

@ -451,16 +451,6 @@ void base_gb_cart_slot_device::setup_ram(UINT8 banks)
/*-------------------------------------------------
call softlist load
-------------------------------------------------*/
bool base_gb_cart_slot_device::call_softlist_load(software_list_device &swlist, const char *swname, const rom_entry *start_entry)
{
machine().rom_load().load_software_part_region(*this, swlist, swname, start_entry);
return true;
}
// This fails to catch Mani 4-in-1 carts... even when they match this, then they have MBC1/3 in the internal header instead of MMM01...
bool base_gb_cart_slot_device::get_mmm01_candidate(UINT8 *ROM, UINT32 len)
{

View File

@ -118,7 +118,7 @@ public:
// image-level overrides
virtual bool call_load() override;
virtual void call_unload() override;
virtual bool call_softlist_load(software_list_device &swlist, const char *swname, const rom_entry *start_entry) override;
virtual softlist_type get_softlist_type() const override { return softlist_type::ROM; }
int get_type() { return m_type; }
int get_cart_type(UINT8 *ROM, UINT32 len);

View File

@ -254,18 +254,6 @@ void gba_cart_slot_device::call_unload()
/*-------------------------------------------------
call softlist load
-------------------------------------------------*/
bool gba_cart_slot_device::call_softlist_load(software_list_device &swlist, const char *swname, const rom_entry *start_entry)
{
machine().rom_load().load_software_part_region(*this, swlist, swname, start_entry);
return TRUE;
}
/*-------------------------------------------------
get_cart_type - code to detect NVRAM type from
fullpath

View File

@ -87,7 +87,7 @@ public:
// image-level overrides
virtual bool call_load() override;
virtual void call_unload() override;
virtual bool call_softlist_load(software_list_device &swlist, const char *swname, const rom_entry *start_entry) override;
virtual softlist_type get_softlist_type() const override { return softlist_type::ROM; }
int get_type() { return m_type; }
int get_cart_type(UINT8 *ROM, UINT32 len);

View File

@ -164,18 +164,6 @@ void generic_slot_device::call_unload()
}
/*-------------------------------------------------
call softlist load
-------------------------------------------------*/
bool generic_slot_device::call_softlist_load(software_list_device &swlist, const char *swname, const rom_entry *start_entry)
{
machine().rom_load().load_software_part_region(*this, swlist, swname, start_entry);
return TRUE;
}
/*-------------------------------------------------
get default card software
-------------------------------------------------*/

View File

@ -114,7 +114,7 @@ public:
// image-level overrides
virtual bool call_load() override;
virtual void call_unload() override;
virtual bool call_softlist_load(software_list_device &swlist, const char *swname, const rom_entry *start_entry) override;
virtual softlist_type get_softlist_type() const override { return softlist_type::ROM; }
UINT32 common_get_size(const char *region);
void common_load_rom(UINT8 *ROM, UINT32 len, const char *region);

View File

@ -126,13 +126,6 @@ void hp_optrom_slot_device::call_unload()
}
}
bool hp_optrom_slot_device::call_softlist_load(software_list_device &swlist, const char *swname, const rom_entry *start_entry)
{
logerror("hp_optrom: call_softlist_load\n");
machine().rom_load().load_software_part_region(*this, swlist, swname, start_entry);
return TRUE;
}
std::string hp_optrom_slot_device::get_default_card_software()
{
return software_get_default_slot("rom");

View File

@ -43,7 +43,7 @@ public:
// image-level overrides
virtual bool call_load() override;
virtual void call_unload() override;
virtual bool call_softlist_load(software_list_device &swlist, const char *swname, const rom_entry *start_entry) override;
virtual softlist_type get_softlist_type() const override { return softlist_type::ROM; }
virtual iodevice_t image_type() const override { return IO_CARTSLOT; }
virtual bool is_readable() const override { return true; }

View File

@ -444,17 +444,6 @@ bool intv_cart_slot_device::call_load()
}
/*-------------------------------------------------
call softlist load
-------------------------------------------------*/
bool intv_cart_slot_device::call_softlist_load(software_list_device &swlist, const char *swname, const rom_entry *start_entry)
{
machine().rom_load().load_software_part_region(*this, swlist, swname, start_entry);
return TRUE;
}
/*-------------------------------------------------
get default card software
-------------------------------------------------*/

View File

@ -102,7 +102,7 @@ public:
// image-level overrides
virtual bool call_load() override;
virtual void call_unload() override {}
virtual bool call_softlist_load(software_list_device &swlist, const char *swname, const rom_entry *start_entry) override;
virtual softlist_type get_softlist_type() const override { return softlist_type::ROM; }
int get_type() { return m_type; }
int load_fullpath();

View File

@ -189,16 +189,6 @@ bool iq151cart_slot_device::call_load()
return IMAGE_INIT_PASS;
}
/*-------------------------------------------------
call softlist load
-------------------------------------------------*/
bool iq151cart_slot_device::call_softlist_load(software_list_device &swlist, const char *swname, const rom_entry *start_entry)
{
machine().rom_load().load_software_part_region(*this, swlist, swname, start_entry );
return TRUE;
}
/*-------------------------------------------------
get default card software
-------------------------------------------------*/

View File

@ -93,7 +93,7 @@ public:
// image-level overrides
virtual bool call_load() override;
virtual bool call_softlist_load(software_list_device &swlist, const char *swname, const rom_entry *start_entry) override;
virtual softlist_type get_softlist_type() const override { return softlist_type::ROM; }
virtual iodevice_t image_type() const override { return IO_CARTSLOT; }
virtual bool is_readable() const override { return 1; }

View File

@ -30,7 +30,7 @@ public:
// image-level overrides
virtual bool call_load() override;
virtual bool call_softlist_load(software_list_device &swlist, const char *swname, const rom_entry *start_entry) override { return load_software(swlist, swname, start_entry); }
virtual softlist_type get_softlist_type() const override { return softlist_type::SOFTWARE; }
virtual void call_unload() override;
virtual iodevice_t image_type() const override { return IO_MAGTAPE; }

View File

@ -355,16 +355,6 @@ bool kccart_slot_device::call_load()
return IMAGE_INIT_PASS;
}
/*-------------------------------------------------
call softlist load
-------------------------------------------------*/
bool kccart_slot_device::call_softlist_load(software_list_device &swlist, const char *swname, const rom_entry *start_entry)
{
machine().rom_load().load_software_part_region(*this, swlist, swname, start_entry );
return TRUE;
}
/*-------------------------------------------------
get default card software
-------------------------------------------------*/

View File

@ -91,7 +91,7 @@ public:
// image-level overrides
virtual bool call_load() override;
virtual bool call_softlist_load(software_list_device &swlist, const char *swname, const rom_entry *start_entry) override;
virtual softlist_type get_softlist_type() const override { return softlist_type::ROM; }
virtual iodevice_t image_type() const override { return IO_CARTSLOT; }
virtual bool is_readable() const override { return 1; }

View File

@ -203,17 +203,6 @@ bool m5_cart_slot_device::call_load()
}
/*-------------------------------------------------
call softlist load
-------------------------------------------------*/
bool m5_cart_slot_device::call_softlist_load(software_list_device &swlist, const char *swname, const rom_entry *start_entry)
{
machine().rom_load().load_software_part_region(*this, swlist, swname, start_entry);
return TRUE;
}
/*-------------------------------------------------
get default card software
-------------------------------------------------*/

View File

@ -70,7 +70,7 @@ public:
// image-level overrides
virtual bool call_load() override;
virtual void call_unload() override {}
virtual bool call_softlist_load(software_list_device &swlist, const char *swname, const rom_entry *start_entry) override;
virtual softlist_type get_softlist_type() const override { return softlist_type::ROM; }
int get_type() { return m_type; }

View File

@ -683,16 +683,6 @@ void base_md_cart_slot_device::setup_nvram()
/*-------------------------------------------------
call softlist load
-------------------------------------------------*/
bool base_md_cart_slot_device::call_softlist_load(software_list_device &swlist, const char *swname, const rom_entry *start_entry)
{
machine().rom_load().load_software_part_region(*this, swlist, swname, start_entry);
return TRUE;
}
int base_md_cart_slot_device::get_cart_type(UINT8 *ROM, UINT32 len)
{
int type = SEGA_STD;

View File

@ -153,7 +153,7 @@ public:
// image-level overrides
virtual bool call_load() override;
virtual void call_unload() override;
virtual bool call_softlist_load(software_list_device &swlist, const char *swname, const rom_entry *start_entry) override;
virtual softlist_type get_softlist_type() const override { return softlist_type::ROM; }
virtual iodevice_t image_type() const override { return IO_CARTSLOT; }
virtual bool is_readable() const override { return 1; }

View File

@ -198,13 +198,6 @@ void msx_slot_cartridge_device::call_unload()
}
bool msx_slot_cartridge_device::call_softlist_load(software_list_device &swlist, const char *swname, const rom_entry *start_entry)
{
machine().rom_load().load_software_part_region(*this, swlist, swname, start_entry);
return true;
}
WRITE_LINE_MEMBER(msx_slot_cartridge_device::irq_out)
{
m_irq_handler(state);

View File

@ -43,7 +43,7 @@ public:
// image-level overrides
virtual bool call_load() override;
virtual void call_unload() override;
virtual bool call_softlist_load(software_list_device &swlist, const char *swname, const rom_entry *start_entry) override;
virtual softlist_type get_softlist_type() const override { return softlist_type::ROM; }
virtual iodevice_t image_type() const override { return IO_CARTSLOT; }
virtual bool is_readable() const override { return true; }
virtual bool is_writeable() const override { return false; }

View File

@ -330,17 +330,6 @@ void neogeo_cart_slot_device::call_unload()
{
}
/*-------------------------------------------------
call softlist load
-------------------------------------------------*/
bool neogeo_cart_slot_device::call_softlist_load(software_list_device &swlist, const char *swname, const rom_entry *start_entry)
{
machine().rom_load().load_software_part_region(*this, swlist, swname, start_entry );
return TRUE;
}
/*-------------------------------------------------
get default card software
-------------------------------------------------*/

View File

@ -195,7 +195,7 @@ public:
// image-level overrides
virtual bool call_load() override;
virtual void call_unload() override;
virtual bool call_softlist_load(software_list_device &swlist, const char *swname, const rom_entry *start_entry) override;
virtual softlist_type get_softlist_type() const override { return softlist_type::ROM; }
virtual iodevice_t image_type() const override { return IO_CARTSLOT; }
virtual bool is_readable() const override { return 1; }

View File

@ -136,12 +136,6 @@ bool nes_aladdin_slot_device::call_load()
}
bool nes_aladdin_slot_device::call_softlist_load(software_list_device &swlist, const char *swname, const rom_entry *start_entry)
{
machine().rom_load().load_software_part_region(*this, swlist, swname, start_entry );
return TRUE;
}
std::string nes_aladdin_slot_device::get_default_card_software()
{
if (open_image_file(mconfig().options()))

View File

@ -52,7 +52,7 @@ public:
// image-level overrides
virtual bool call_load() override;
virtual bool call_softlist_load(software_list_device &swlist, const char *swname, const rom_entry *start_entry) override;
virtual softlist_type get_softlist_type() const override { return softlist_type::ROM; }
virtual iodevice_t image_type() const override { return IO_CARTSLOT; }
virtual bool is_readable() const override { return 1; }

View File

@ -137,12 +137,6 @@ bool nes_datach_slot_device::call_load()
}
bool nes_datach_slot_device::call_softlist_load(software_list_device &swlist, const char *swname, const rom_entry *start_entry)
{
machine().rom_load().load_software_part_region(*this, swlist, swname, start_entry );
return TRUE;
}
std::string nes_datach_slot_device::get_default_card_software()
{
// any way to detect the game with X24C01?

View File

@ -54,7 +54,7 @@ public:
// image-level overrides
virtual bool call_load() override;
virtual bool call_softlist_load(software_list_device &swlist, const char *swname, const rom_entry *start_entry) override;
virtual softlist_type get_softlist_type() const override { return softlist_type::ROM; }
virtual iodevice_t image_type() const override { return IO_CARTSLOT; }
virtual bool is_readable() const override { return 1; }

View File

@ -126,12 +126,6 @@ bool nes_kstudio_slot_device::call_load()
}
bool nes_kstudio_slot_device::call_softlist_load(software_list_device &swlist, const char *swname, const rom_entry *start_entry)
{
machine().rom_load().load_software_part_region(*this, swlist, swname, start_entry );
return TRUE;
}
std::string nes_kstudio_slot_device::get_default_card_software()
{
return software_get_default_slot("ks_exp");

View File

@ -51,7 +51,7 @@ public:
// image-level overrides
virtual bool call_load() override;
virtual bool call_softlist_load(software_list_device &swlist, const char *swname, const rom_entry *start_entry) override;
virtual softlist_type get_softlist_type() const override { return softlist_type::ROM; }
virtual iodevice_t image_type() const override { return IO_CARTSLOT; }
virtual bool is_readable() const override { return 1; }

View File

@ -898,16 +898,6 @@ void nes_cart_slot_device::call_unload()
}
/*-------------------------------------------------
call softlist load
-------------------------------------------------*/
bool nes_cart_slot_device::call_softlist_load(software_list_device &swlist, const char *swname, const rom_entry *start_entry)
{
machine().rom_load().load_software_part_region(*this, swlist, swname, start_entry);
return TRUE;
}
/*-------------------------------------------------
get default card software
-------------------------------------------------*/

View File

@ -346,7 +346,7 @@ public:
// image-level overrides
virtual bool call_load() override;
virtual void call_unload() override;
virtual bool call_softlist_load(software_list_device &swlist, const char *swname, const rom_entry *start_entry) override;
virtual softlist_type get_softlist_type() const override { return softlist_type::ROM; }
void call_load_ines();
void call_load_unif();

View File

@ -105,12 +105,6 @@ bool nes_ntb_slot_device::call_load()
}
bool nes_ntb_slot_device::call_softlist_load(software_list_device &swlist, const char *swname, const rom_entry *start_entry)
{
machine().rom_load().load_software_part_region(*this, swlist, swname, start_entry );
return TRUE;
}
std::string nes_ntb_slot_device::get_default_card_software()
{
return software_get_default_slot("ntbrom");

View File

@ -48,7 +48,7 @@ public:
// image-level overrides
virtual bool call_load() override;
virtual bool call_softlist_load(software_list_device &swlist, const char *swname, const rom_entry *start_entry) override;
virtual softlist_type get_softlist_type() const override { return softlist_type::ROM; }
virtual iodevice_t image_type() const override { return IO_CARTSLOT; }
virtual bool is_readable() const override { return 1; }

View File

@ -194,17 +194,6 @@ bool o2_cart_slot_device::call_load()
}
/*-------------------------------------------------
call softlist load
-------------------------------------------------*/
bool o2_cart_slot_device::call_softlist_load(software_list_device &swlist, const char *swname, const rom_entry *start_entry)
{
machine().rom_load().load_software_part_region(*this, swlist, swname, start_entry);
return TRUE;
}
/*-------------------------------------------------
get default card software
-------------------------------------------------*/

View File

@ -69,7 +69,7 @@ public:
// image-level overrides
virtual bool call_load() override;
virtual void call_unload() override {}
virtual bool call_softlist_load(software_list_device &swlist, const char *swname, const rom_entry *start_entry) override;
virtual softlist_type get_softlist_type() const override { return softlist_type::ROM; }
int get_type() { return m_type; }

View File

@ -294,18 +294,6 @@ void pce_cart_slot_device::call_unload()
}
/*-------------------------------------------------
call softlist load
-------------------------------------------------*/
bool pce_cart_slot_device::call_softlist_load(software_list_device &swlist, const char *swname, const rom_entry *start_entry)
{
machine().rom_load().load_software_part_region(*this, swlist, swname, start_entry);
return TRUE;
}
/*-------------------------------------------------
get_cart_type - code to detect NVRAM type from
fullpath

View File

@ -68,7 +68,7 @@ public:
// image-level overrides
virtual bool call_load() override;
virtual void call_unload() override;
virtual bool call_softlist_load(software_list_device &swlist, const char *swname, const rom_entry *start_entry) override;
virtual softlist_type get_softlist_type() const override { return softlist_type::ROM; }
int get_type() { return m_type; }
int get_cart_type(UINT8 *ROM, UINT32 len);

View File

@ -141,18 +141,6 @@ bool plus4_expansion_slot_device::call_load()
}
//-------------------------------------------------
// call_softlist_load -
//-------------------------------------------------
bool plus4_expansion_slot_device::call_softlist_load(software_list_device &swlist, const char *swname, const rom_entry *start_entry)
{
machine().rom_load().load_software_part_region(*this, swlist, swname, start_entry);
return true;
}
//-------------------------------------------------
// get_default_card_software -
//-------------------------------------------------

View File

@ -121,7 +121,7 @@ protected:
// image-level overrides
virtual bool call_load() override;
virtual bool call_softlist_load(software_list_device &swlist, const char *swname, const rom_entry *start_entry) override;
virtual softlist_type get_softlist_type() const override { return softlist_type::ROM; }
virtual iodevice_t image_type() const override { return IO_CARTSLOT; }

View File

@ -98,18 +98,6 @@ bool ql_rom_cartridge_slot_t::call_load()
}
//-------------------------------------------------
// call_softlist_load -
//-------------------------------------------------
bool ql_rom_cartridge_slot_t::call_softlist_load(software_list_device &swlist, const char *swname, const rom_entry *start_entry)
{
machine().rom_load().load_software_part_region(*this, swlist, swname, start_entry);
return true;
}
//-------------------------------------------------
// get_default_card_software -
//-------------------------------------------------

View File

@ -96,7 +96,7 @@ protected:
// image-level overrides
virtual bool call_load() override;
virtual bool call_softlist_load(software_list_device &swlist, const char *swname, const rom_entry *start_entry) override;
virtual softlist_type get_softlist_type() const override { return softlist_type::ROM; }
virtual iodevice_t image_type() const override { return IO_CARTSLOT; }

View File

@ -204,17 +204,6 @@ void sat_cart_slot_device::call_unload()
/*-------------------------------------------------
call softlist load
-------------------------------------------------*/
bool sat_cart_slot_device::call_softlist_load(software_list_device &swlist, const char *swname, const rom_entry *start_entry)
{
machine().rom_load().load_software_part_region(*this, swlist, swname, start_entry);
return TRUE;
}
/*-------------------------------------------------
get default card software
-------------------------------------------------*/

View File

@ -74,7 +74,7 @@ public:
// image-level overrides
virtual bool call_load() override;
virtual void call_unload() override;
virtual bool call_softlist_load(software_list_device &swlist, const char *swname, const rom_entry *start_entry) override;
virtual softlist_type get_softlist_type() const override { return softlist_type::ROM; }
int get_cart_type();

View File

@ -210,18 +210,6 @@ bool scv_cart_slot_device::call_load()
}
/*-------------------------------------------------
call softlist load
-------------------------------------------------*/
bool scv_cart_slot_device::call_softlist_load(software_list_device &swlist, const char *swname, const rom_entry *start_entry)
{
machine().rom_load().load_software_part_region(*this, swlist, swname, start_entry);
return TRUE;
}
/*-------------------------------------------------
get_cart_type - code to detect NVRAM type from
fullpath

View File

@ -70,7 +70,7 @@ public:
// image-level overrides
virtual bool call_load() override;
virtual void call_unload() override {}
virtual bool call_softlist_load(software_list_device &swlist, const char *swname, const rom_entry *start_entry) override;
virtual softlist_type get_softlist_type() const override { return softlist_type::ROM; }
int get_type() { return m_type; }
int get_cart_type(UINT8 *ROM, UINT32 len);

View File

@ -415,17 +415,6 @@ void sega8_cart_slot_device::call_unload()
}
/*-------------------------------------------------
call softlist load
-------------------------------------------------*/
bool sega8_cart_slot_device::call_softlist_load(software_list_device &swlist, const char *swname, const rom_entry *start_entry)
{
machine().rom_load().load_software_part_region(*this, swlist, swname, start_entry);
return TRUE;
}
#ifdef UNUSED_FUNCTION
// For the moment we switch to a different detection routine which allows to detect
// in a single run Codemasters mapper, Korean mapper (including Jang Pung 3 which

View File

@ -110,7 +110,7 @@ public:
// image-level overrides
virtual bool call_load() override;
virtual void call_unload() override;
virtual bool call_softlist_load(software_list_device &swlist, const char *swname, const rom_entry *start_entry) override;
virtual softlist_type get_softlist_type() const override { return softlist_type::ROM; }
int get_type() { return m_type; }
int get_cart_type(UINT8 *ROM, UINT32 len);

View File

@ -880,16 +880,6 @@ void base_sns_cart_slot_device::setup_nvram()
/*-------------------------------------------------
call softlist load
-------------------------------------------------*/
bool base_sns_cart_slot_device::call_softlist_load(software_list_device &swlist, const char *swname, const rom_entry *start_entry)
{
machine().rom_load().load_software_part_region(*this, swlist, swname, start_entry );
return TRUE;
}
void base_sns_cart_slot_device::get_cart_type_addon(UINT8 *ROM, UINT32 len, int &type, int &addon)
{
// First, look if the cart is HiROM or LoROM (and set snes_cart accordingly)

View File

@ -159,7 +159,7 @@ public:
// image-level overrides
virtual bool call_load() override;
virtual void call_unload() override;
virtual bool call_softlist_load(software_list_device &swlist, const char *swname, const rom_entry *start_entry) override;
virtual softlist_type get_softlist_type() const override { return softlist_type::ROM; }
void get_cart_type_addon(UINT8 *ROM, UINT32 len, int &type, int &addon);
UINT32 snes_skip_header(UINT8 *ROM, UINT32 snes_rom_size);

View File

@ -1417,13 +1417,11 @@ void ti99_cartridge_device::set_slot(int i)
m_slot = i;
}
bool ti99_cartridge_device::call_softlist_load(software_list_device &swlist, const char *swname, const rom_entry *start_entry)
void ti99_cartridge_device::loaded_through_softlist()
{
if (TRACE_CONFIG) logerror("swlist = %s, swname = %s\n", swlist.list_name(), swname);
machine().rom_load().load_software_part_region(*this, swlist, swname, start_entry);
// TI99 cartridge seems to be the only reason we need loaded_through_softlist()... why?
m_softlist = true;
m_rpk = nullptr;
return true;
}
READ8Z_MEMBER(ti99_cartridge_device::readz)

View File

@ -108,7 +108,8 @@ protected:
// Image handling: implementation of methods which are abstract in the parent
bool call_load() override;
void call_unload() override;
bool call_softlist_load(software_list_device &swlist, const char *swname, const rom_entry *start_entry) override;
virtual softlist_type get_softlist_type() const override { return softlist_type::ROM; }
virtual void loaded_through_softlist() override;
void prepare_cartridge();

View File

@ -217,18 +217,6 @@ void vboy_cart_slot_device::call_unload()
battery_save(m_cart->get_eeprom_base(), m_cart->get_eeprom_size() * 4);
}
/*-------------------------------------------------
call softlist load
-------------------------------------------------*/
bool vboy_cart_slot_device::call_softlist_load(software_list_device &swlist, const char *swname, const rom_entry *start_entry)
{
machine().rom_load().load_software_part_region(*this, swlist, swname, start_entry);
return TRUE;
}
/*-------------------------------------------------
get default card software
-------------------------------------------------*/

View File

@ -66,7 +66,7 @@ public:
// image-level overrides
virtual bool call_load() override;
virtual void call_unload() override;
virtual bool call_softlist_load(software_list_device &swlist, const char *swname, const rom_entry *start_entry) override;
virtual softlist_type get_softlist_type() const override { return softlist_type::ROM; }
int get_type() { return m_type; }

View File

@ -220,17 +220,6 @@ bool vc4000_cart_slot_device::call_load()
}
/*-------------------------------------------------
call softlist load
-------------------------------------------------*/
bool vc4000_cart_slot_device::call_softlist_load(software_list_device &swlist, const char *swname, const rom_entry *start_entry)
{
machine().rom_load().load_software_part_region(*this, swlist, swname, start_entry);
return TRUE;
}
/*-------------------------------------------------
get default card software
-------------------------------------------------*/

View File

@ -68,7 +68,7 @@ public:
// image-level overrides
virtual bool call_load() override;
virtual void call_unload() override {}
virtual bool call_softlist_load(software_list_device &swlist, const char *swname, const rom_entry *start_entry) override;
virtual softlist_type get_softlist_type() const override { return softlist_type::ROM; }
int get_type() { return m_type; }

View File

@ -327,17 +327,6 @@ void vcs_cart_slot_device::call_unload()
/*-------------------------------------------------
call softlist load
-------------------------------------------------*/
bool vcs_cart_slot_device::call_softlist_load(software_list_device &swlist, const char *swname, const rom_entry *start_entry)
{
machine().rom_load().load_software_part_region(*this, swlist, swname, start_entry );
return TRUE;
}
/*-------------------------------------------------
detection helper routines
-------------------------------------------------*/

View File

@ -96,7 +96,7 @@ public:
// image-level overrides
virtual bool call_load() override;
virtual void call_unload() override;
virtual bool call_softlist_load(software_list_device &swlist, const char *swname, const rom_entry *start_entry) override;
virtual softlist_type get_softlist_type() const override { return softlist_type::ROM; }
int get_cart_type() { return m_type; };
int identify_cart_type(UINT8 *ROM, UINT32 len);

View File

@ -202,17 +202,6 @@ bool vectrex_cart_slot_device::call_load()
}
/*-------------------------------------------------
call softlist load
-------------------------------------------------*/
bool vectrex_cart_slot_device::call_softlist_load(software_list_device &swlist, const char *swname, const rom_entry *start_entry)
{
machine().rom_load().load_software_part_region(*this, swlist, swname, start_entry);
return TRUE;
}
/*-------------------------------------------------
get default card software
-------------------------------------------------*/

View File

@ -68,7 +68,7 @@ public:
// image-level overrides
virtual bool call_load() override;
virtual void call_unload() override {}
virtual bool call_softlist_load(software_list_device &swlist, const char *swname, const rom_entry *start_entry) override;
virtual softlist_type get_softlist_type() const override { return softlist_type::ROM; }
int get_type() { return m_type; }
int get_vec3d() { return m_vec3d; }

View File

@ -166,18 +166,6 @@ bool vic10_expansion_slot_device::call_load()
}
//-------------------------------------------------
// call_softlist_load -
//-------------------------------------------------
bool vic10_expansion_slot_device::call_softlist_load(software_list_device &swlist, const char *swname, const rom_entry *start_entry)
{
machine().rom_load().load_software_part_region(*this, swlist, swname, start_entry);
return true;
}
//-------------------------------------------------
// get_default_card_software -
//-------------------------------------------------

View File

@ -120,7 +120,7 @@ protected:
// image-level overrides
virtual bool call_load() override;
virtual bool call_softlist_load(software_list_device &swlist, const char *swname, const rom_entry *start_entry) override;
virtual softlist_type get_softlist_type() const override { return softlist_type::ROM; }
virtual iodevice_t image_type() const override { return IO_CARTSLOT; }

View File

@ -151,18 +151,6 @@ bool vic20_expansion_slot_device::call_load()
}
//-------------------------------------------------
// call_softlist_load -
//-------------------------------------------------
bool vic20_expansion_slot_device::call_softlist_load(software_list_device &swlist, const char *swname, const rom_entry *start_entry)
{
machine().rom_load().load_software_part_region(*this, swlist, swname, start_entry);
return true;
}
//-------------------------------------------------
// get_default_card_software -
//-------------------------------------------------

View File

@ -111,7 +111,7 @@ protected:
// image-level overrides
virtual bool call_load() override;
virtual bool call_softlist_load(software_list_device &swlist, const char *swname, const rom_entry *start_entry) override;
virtual softlist_type get_softlist_type() const override { return softlist_type::ROM; }
virtual iodevice_t image_type() const override { return IO_CARTSLOT; }

View File

@ -138,18 +138,6 @@ bool videobrain_expansion_slot_device::call_load()
}
//-------------------------------------------------
// call_softlist_load -
//-------------------------------------------------
bool videobrain_expansion_slot_device::call_softlist_load(software_list_device &swlist, const char *swname, const rom_entry *start_entry)
{
machine().rom_load().load_software_part_region(*this, swlist, swname, start_entry);
return true;
}
//-------------------------------------------------
// get_default_card_software -
//-------------------------------------------------

View File

@ -136,7 +136,7 @@ protected:
// image-level overrides
virtual bool call_load() override;
virtual bool call_softlist_load(software_list_device &swlist, const char *swname, const rom_entry *start_entry) override;
virtual softlist_type get_softlist_type() const override { return softlist_type::ROM; }
virtual iodevice_t image_type() const override { return IO_CARTSLOT; }

View File

@ -237,17 +237,6 @@ void ws_cart_slot_device::call_unload()
}
/*-------------------------------------------------
call softlist load
-------------------------------------------------*/
bool ws_cart_slot_device::call_softlist_load(software_list_device &swlist, const char *swname, const rom_entry *start_entry)
{
machine().rom_load().load_software_part_region(*this, swlist, swname, start_entry);
return TRUE;
}
/*-------------------------------------------------
get cart type from cart file
-------------------------------------------------*/

View File

@ -76,7 +76,7 @@ public:
// image-level overrides
virtual bool call_load() override;
virtual void call_unload() override;
virtual bool call_softlist_load(software_list_device &swlist, const char *swname, const rom_entry *start_entry) override;
virtual softlist_type get_softlist_type() const override { return softlist_type::ROM; }
int get_type() { return m_type; }
int get_is_rotated() { return m_cart->get_is_rotated(); }

View File

@ -171,16 +171,6 @@ void z88cart_slot_device::call_unload()
}
/*-------------------------------------------------
call softlist load
-------------------------------------------------*/
bool z88cart_slot_device::call_softlist_load(software_list_device &swlist, const char *swname, const rom_entry *start_entry)
{
machine().rom_load().load_software_part_region(*this, swlist, swname, start_entry );
return TRUE;
}
/*-------------------------------------------------
get default card software
-------------------------------------------------*/

View File

@ -96,7 +96,7 @@ public:
// image-level overrides
virtual bool call_load() override;
virtual void call_unload() override;
virtual bool call_softlist_load(software_list_device &swlist, const char *swname, const rom_entry *start_entry) override;
virtual softlist_type get_softlist_type() const override { return softlist_type::ROM; }
virtual iodevice_t image_type() const override { return IO_CARTSLOT; }
virtual bool is_readable() const override { return 1; }

View File

@ -59,7 +59,7 @@ public:
virtual bool call_create(int format_type, util::option_resolution *format_options) override;
virtual void call_unload() override;
virtual std::string call_display() override;
virtual bool call_softlist_load(software_list_device &swlist, const char *swname, const rom_entry *start_entry) override { return load_software(swlist, swname, start_entry); }
virtual softlist_type get_softlist_type() const override { return softlist_type::SOFTWARE; }
virtual iodevice_t image_type() const override { return IO_CASSETTE; }

View File

@ -33,7 +33,7 @@ public:
// image-level overrides
virtual bool call_load() override;
virtual void call_unload() override;
virtual bool call_softlist_load(software_list_device &swlist, const char *swname, const rom_entry *start_entry) override { machine().rom_load().load_software_part_region(*this, swlist, swname, start_entry ); return TRUE; }
virtual softlist_type get_softlist_type() const override { return softlist_type::ROM; }
virtual iodevice_t image_type() const override { return IO_CDROM; }

View File

@ -33,7 +33,7 @@ public:
virtual bool call_load() override;
virtual bool call_create(int create_format, util::option_resolution *create_args) override;
virtual void call_unload() override;
virtual bool call_softlist_load(software_list_device &swlist, const char *swname, const rom_entry *start_entry) override { device().machine().rom_load().load_software_part_region(*this, swlist, swname, start_entry ); return TRUE; }
virtual softlist_type get_softlist_type() const override { return softlist_type::ROM; }
virtual iodevice_t image_type() const override { return IO_HARDDISK; }

View File

@ -100,7 +100,7 @@ public:
template<class _Object> static devcb_base &set_out_idx_func(device_t &device, _Object object) { return downcast<legacy_floppy_image_device &>(device).m_out_idx_func.set_callback(object); }
virtual bool call_load() override;
virtual bool call_softlist_load(software_list_device &swlist, const char *swname, const rom_entry *start_entry) override { return load_software(swlist, swname, start_entry); }
virtual softlist_type get_softlist_type() const override { return softlist_type::SOFTWARE; }
virtual bool call_create(int format_type, util::option_resolution *format_options) override;
virtual void call_unload() override;

View File

@ -83,7 +83,7 @@ public:
virtual bool call_load() override;
virtual void call_unload() override;
virtual bool call_create(int format_type, util::option_resolution *format_options) override;
virtual bool call_softlist_load(software_list_device &swlist, const char *swname, const rom_entry *start_entry) override { return load_software(swlist, swname, start_entry); }
virtual softlist_type get_softlist_type() const override { return softlist_type::SOFTWARE; }
virtual const char *image_interface() const override = 0;
virtual iodevice_t image_type() const override { return IO_FLOPPY; }

View File

@ -35,7 +35,7 @@ public:
virtual bool call_load() override;
virtual bool call_create(int create_format, util::option_resolution *create_args) override;
virtual void call_unload() override;
virtual bool call_softlist_load(software_list_device &swlist, const char *swname, const rom_entry *start_entry) override { machine().rom_load().load_software_part_region(*this, swlist, swname, start_entry ); return TRUE; }
virtual softlist_type get_softlist_type() const override { return softlist_type::ROM; }
virtual iodevice_t image_type() const override { return IO_HARDDISK; }

View File

@ -27,7 +27,7 @@ public:
// image-level overrides
virtual bool call_load() override;
virtual bool call_softlist_load(software_list_device &swlist, const char *swname, const rom_entry *start_entry) override { return load_software(swlist, swname, start_entry); }
virtual softlist_type get_softlist_type() const override { return softlist_type::SOFTWARE; }
virtual iodevice_t image_type() const override { return IO_SNAPSHOT; }
virtual bool is_readable() const override { return 1; }

Some files were not shown because too many files have changed in this diff Show More