| Previous | 15994 Revisions | Next |
| r14527 Sunday 19th February, 2012 at 14:14:46 UTC by Miodrag Milanović |
|---|
| Added possibility to see subslot devices when they are added from softlist, also removed "const" from get_default_card_software, that enable better usage and no need for it to be like that (no whatsnew) |
| [src/emu] | dislot.h emuopts.c |
| [src/mess/machine] | c64exp.c c64exp.h cococart.c cococart.h iq151cart.c iq151cart.h kcexp.c kcexp.h vic10exp.c vic10exp.h vic20exp.c vic20exp.h |
| r14526 | r14527 | |
|---|---|---|
| 374 | 374 | } |
| 375 | 375 | result = core_options::parse_command_line(argc, argv, OPTION_PRIORITY_CMDLINE, error_string); |
| 376 | 376 | update_slot_options(); |
| 377 | while (add_slot_options(false)); | |
| 377 | 378 | add_device_options(true); |
| 378 | 379 | result = core_options::parse_command_line(argc, argv, OPTION_PRIORITY_CMDLINE, error_string); |
| 379 | 380 | return result; |
| r14526 | r14527 | |
| 504 | 505 | // then add the options |
| 505 | 506 | add_device_options(true); |
| 506 | 507 | update_slot_options(); |
| 508 | while (add_slot_options(false)); | |
| 507 | 509 | add_device_options(true); |
| 508 | 510 | } |
| 509 | 511 | } |
| r14526 | r14527 | |
|---|---|---|
| 49 | 49 | static void static_set_slot_info(device_t &device, const slot_interface *slots_info, const char *default_card,const input_device_default *default_input); |
| 50 | 50 | const slot_interface* get_slot_interfaces() const { return m_slot_interfaces; }; |
| 51 | 51 | const char * get_default_card(const machine_config &config, emu_options &options) const { return m_default_card; }; |
| 52 | virtual const char * get_default_card_software(const machine_config &config, emu_options &options) | |
| 52 | virtual const char * get_default_card_software(const machine_config &config, emu_options &options) | |
| 53 | 53 | const input_device_default *input_ports_defaults() const { return m_input_defaults; } |
| 54 | 54 | device_t* get_card_device(); |
| 55 | 55 | protected: |
| r14526 | r14527 | |
|---|---|---|
| 101 | 101 | virtual const option_guide *create_option_guide() const { return NULL; } |
| 102 | 102 | |
| 103 | 103 | // slot interface overrides |
| 104 | virtual const char * get_default_card_software(const machine_config &config, emu_options &options) | |
| 104 | virtual const char * get_default_card_software(const machine_config &config, emu_options &options) | |
| 105 | 105 | |
| 106 | 106 | /* reading and writing to $FF40-$FF7F */ |
| 107 | 107 | DECLARE_READ8_MEMBER(read); |
| r14526 | r14527 | |
|---|---|---|
| 370 | 370 | // get_default_card_software - |
| 371 | 371 | //------------------------------------------------- |
| 372 | 372 | |
| 373 | const char * vic20_expansion_slot_device::get_default_card_software(const machine_config &config, emu_options &options) | |
| 373 | const char * vic20_expansion_slot_device::get_default_card_software(const machine_config &config, emu_options &options) | |
| 374 | 374 | { |
| 375 | 375 | return software_get_default_slot(config, options, this, "standard"); |
| 376 | 376 | } |
| r14526 | r14527 | |
|---|---|---|
| 138 | 138 | virtual const option_guide *create_option_guide() const { return NULL; } |
| 139 | 139 | |
| 140 | 140 | // slot interface overrides |
| 141 | virtual const char * get_default_card_software(const machine_config &config, emu_options &options) | |
| 141 | virtual const char * get_default_card_software(const machine_config &config, emu_options &options) | |
| 142 | 142 | |
| 143 | 143 | devcb_resolved_write_line m_out_irq_func; |
| 144 | 144 | devcb_resolved_write_line m_out_nmi_func; |
| r14526 | r14527 | |
|---|---|---|
| 214 | 214 | get default card software |
| 215 | 215 | -------------------------------------------------*/ |
| 216 | 216 | |
| 217 | const char * iq151cart_slot_device::get_default_card_software(const machine_config &config, emu_options &options) | |
| 217 | const char * iq151cart_slot_device::get_default_card_software(const machine_config &config, emu_options &options) | |
| 218 | 218 | { |
| 219 | 219 | return software_get_default_slot(config, options, this, NULL); |
| 220 | 220 | } |
| r14526 | r14527 | |
|---|---|---|
| 388 | 388 | get default card software |
| 389 | 389 | -------------------------------------------------*/ |
| 390 | 390 | |
| 391 | const char * kccart_slot_device::get_default_card_software(const machine_config &config, emu_options &options) | |
| 391 | const char * kccart_slot_device::get_default_card_software(const machine_config &config, emu_options &options) | |
| 392 | 392 | { |
| 393 | 393 | return software_get_default_slot(config, options, this, "standard"); |
| 394 | 394 | } |
| r14526 | r14527 | |
|---|---|---|
| 111 | 111 | virtual const option_guide *create_option_guide() const { return NULL; } |
| 112 | 112 | |
| 113 | 113 | // slot interface overrides |
| 114 | virtual const char * get_default_card_software(const machine_config &config, emu_options &options) | |
| 114 | virtual const char * get_default_card_software(const machine_config &config, emu_options &options) | |
| 115 | 115 | |
| 116 | 116 | // reading and writing |
| 117 | 117 | virtual void read(offs_t offset, UINT8 &data); |
| r14526 | r14527 | |
|---|---|---|
| 110 | 110 | virtual const option_guide *create_option_guide() const { return NULL; } |
| 111 | 111 | |
| 112 | 112 | // slot interface overrides |
| 113 | virtual const char * get_default_card_software(const machine_config &config, emu_options &options) | |
| 113 | virtual const char * get_default_card_software(const machine_config &config, emu_options &options) | |
| 114 | 114 | }; |
| 115 | 115 | |
| 116 | 116 | // device type definition |
| r14526 | r14527 | |
|---|---|---|
| 402 | 402 | // get_default_card_software - |
| 403 | 403 | //------------------------------------------------- |
| 404 | 404 | |
| 405 | const char * c64_expansion_slot_device::get_default_card_software(const machine_config &config, emu_options &options) | |
| 405 | const char * c64_expansion_slot_device::get_default_card_software(const machine_config &config, emu_options &options) | |
| 406 | 406 | { |
| 407 | 407 | return software_get_default_slot(config, options, this, "standard"); |
| 408 | 408 | } |
| r14526 | r14527 | |
|---|---|---|
| 126 | 126 | virtual const option_guide *create_option_guide() const { return NULL; } |
| 127 | 127 | |
| 128 | 128 | // slot interface overrides |
| 129 | virtual const char * get_default_card_software(const machine_config &config, emu_options &options) | |
| 129 | virtual const char * get_default_card_software(const machine_config &config, emu_options &options) | |
| 130 | 130 | |
| 131 | 131 | devcb_resolved_write_line m_out_irq_func; |
| 132 | 132 | devcb_resolved_write_line m_out_nmi_func; |
| r14526 | r14527 | |
|---|---|---|
| 172 | 172 | // get_default_card_software - |
| 173 | 173 | //------------------------------------------------- |
| 174 | 174 | |
| 175 | const char * vic10_expansion_slot_device::get_default_card_software(const machine_config &config, emu_options &options) | |
| 175 | const char * vic10_expansion_slot_device::get_default_card_software(const machine_config &config, emu_options &options) | |
| 176 | 176 | { |
| 177 | 177 | return software_get_default_slot(config, options, this, "standard"); |
| 178 | 178 | } |
| r14526 | r14527 | |
|---|---|---|
| 131 | 131 | virtual const option_guide *create_option_guide() const { return NULL; } |
| 132 | 132 | |
| 133 | 133 | // slot interface overrides |
| 134 | virtual const char * get_default_card_software(const machine_config &config, emu_options &options) | |
| 134 | virtual const char * get_default_card_software(const machine_config &config, emu_options &options) | |
| 135 | 135 | |
| 136 | 136 | devcb_resolved_write_line m_out_irq_func; |
| 137 | 137 | devcb_resolved_write_line m_out_sp_func; |
| r14526 | r14527 | |
|---|---|---|
| 390 | 390 | // get_default_card_software |
| 391 | 391 | //------------------------------------------------- |
| 392 | 392 | |
| 393 | const char * cococart_slot_device::get_default_card_software(const machine_config &devlist, emu_options &options) | |
| 393 | const char * cococart_slot_device::get_default_card_software(const machine_config &devlist, emu_options &options) | |
| 394 | 394 | { |
| 395 | 395 | return software_get_default_slot(devlist, options, this, "pak"); |
| 396 | 396 | } |
| Previous | 15994 Revisions | Next |