mirror of
https://github.com/holub/mame
synced 2025-04-25 17:56:43 +03:00
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:
parent
85d9536cdb
commit
ae5dab64d7
@ -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
|
||||
|
@ -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; }
|
||||
|
@ -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
|
||||
|
@ -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);
|
||||
|
@ -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 -
|
||||
//-------------------------------------------------
|
||||
|
@ -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; }
|
||||
|
||||
|
@ -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
|
||||
-------------------------------------------------*/
|
||||
|
@ -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; }
|
||||
|
||||
|
@ -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
|
||||
-------------------------------------------------*/
|
||||
|
@ -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; }
|
||||
|
||||
|
@ -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
|
||||
-------------------------------------------------*/
|
||||
|
@ -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; }
|
||||
|
||||
|
@ -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 -
|
||||
//-------------------------------------------------
|
||||
|
@ -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; }
|
||||
|
||||
|
@ -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 -
|
||||
//-------------------------------------------------
|
||||
|
@ -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; }
|
||||
|
||||
|
@ -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
|
||||
-------------------------------------------------*/
|
||||
|
@ -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; }
|
||||
|
||||
|
@ -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
|
||||
//-------------------------------------------------
|
||||
|
@ -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; }
|
||||
|
||||
|
@ -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 -
|
||||
//-------------------------------------------------
|
||||
|
@ -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; }
|
||||
|
||||
|
@ -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
|
||||
-------------------------------------------------*/
|
||||
|
@ -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; }
|
||||
|
||||
|
@ -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)
|
||||
{
|
||||
|
@ -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);
|
||||
|
@ -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
|
||||
|
@ -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);
|
||||
|
@ -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
|
||||
-------------------------------------------------*/
|
||||
|
@ -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);
|
||||
|
@ -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");
|
||||
|
@ -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; }
|
||||
|
@ -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
|
||||
-------------------------------------------------*/
|
||||
|
@ -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();
|
||||
|
@ -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
|
||||
-------------------------------------------------*/
|
||||
|
@ -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; }
|
||||
|
@ -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; }
|
||||
|
||||
|
@ -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
|
||||
-------------------------------------------------*/
|
||||
|
@ -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; }
|
||||
|
@ -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
|
||||
-------------------------------------------------*/
|
||||
|
@ -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; }
|
||||
|
||||
|
@ -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;
|
||||
|
@ -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; }
|
||||
|
@ -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);
|
||||
|
@ -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; }
|
||||
|
@ -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
|
||||
-------------------------------------------------*/
|
||||
|
@ -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; }
|
||||
|
@ -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()))
|
||||
|
@ -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; }
|
||||
|
@ -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?
|
||||
|
@ -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; }
|
||||
|
@ -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");
|
||||
|
@ -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; }
|
||||
|
@ -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
|
||||
-------------------------------------------------*/
|
||||
|
@ -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();
|
||||
|
@ -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");
|
||||
|
@ -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; }
|
||||
|
@ -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
|
||||
-------------------------------------------------*/
|
||||
|
@ -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; }
|
||||
|
||||
|
@ -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
|
||||
|
@ -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);
|
||||
|
@ -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 -
|
||||
//-------------------------------------------------
|
||||
|
@ -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; }
|
||||
|
||||
|
@ -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 -
|
||||
//-------------------------------------------------
|
||||
|
@ -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; }
|
||||
|
||||
|
@ -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
|
||||
-------------------------------------------------*/
|
||||
|
@ -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();
|
||||
|
||||
|
@ -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
|
||||
|
@ -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);
|
||||
|
@ -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
|
||||
|
@ -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);
|
||||
|
@ -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)
|
||||
|
@ -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);
|
||||
|
@ -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)
|
||||
|
@ -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();
|
||||
|
||||
|
@ -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
|
||||
-------------------------------------------------*/
|
||||
|
@ -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; }
|
||||
|
||||
|
@ -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
|
||||
-------------------------------------------------*/
|
||||
|
@ -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; }
|
||||
|
||||
|
@ -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
|
||||
-------------------------------------------------*/
|
||||
|
@ -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);
|
||||
|
@ -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
|
||||
-------------------------------------------------*/
|
||||
|
@ -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; }
|
||||
|
@ -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 -
|
||||
//-------------------------------------------------
|
||||
|
@ -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; }
|
||||
|
||||
|
@ -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 -
|
||||
//-------------------------------------------------
|
||||
|
@ -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; }
|
||||
|
||||
|
@ -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 -
|
||||
//-------------------------------------------------
|
||||
|
@ -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; }
|
||||
|
||||
|
@ -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
|
||||
-------------------------------------------------*/
|
||||
|
@ -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(); }
|
||||
|
@ -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
|
||||
-------------------------------------------------*/
|
||||
|
@ -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; }
|
||||
|
@ -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; }
|
||||
|
||||
|
@ -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; }
|
||||
|
||||
|
@ -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; }
|
||||
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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; }
|
||||
|
||||
|
@ -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; }
|
||||
|
||||
|
@ -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
Loading…
Reference in New Issue
Block a user