mirror of
https://github.com/holub/mame
synced 2025-04-25 09:50:04 +03:00
osdnet: don't call it close (nw)
This commit is contained in:
parent
71046c63c2
commit
dabbd32a62
@ -41,7 +41,7 @@ void device_network_interface::set_mac(const char *mac)
|
||||
void device_network_interface::set_interface(int id)
|
||||
{
|
||||
if(m_dev)
|
||||
m_dev->close();
|
||||
m_dev->stop();
|
||||
m_dev.reset(open_netdev(id, this, (int)(m_bandwidth*1000000/8.0f/1500)));
|
||||
if(!m_dev) {
|
||||
device().logerror("Network interface %d not found\n", id);
|
||||
|
@ -47,7 +47,7 @@ osd_netdev::~osd_netdev()
|
||||
{
|
||||
}
|
||||
|
||||
void osd_netdev::close()
|
||||
void osd_netdev::stop()
|
||||
{
|
||||
m_stop = true;
|
||||
m_timer->reset();
|
||||
|
@ -21,7 +21,7 @@ public:
|
||||
};
|
||||
osd_netdev(class device_network_interface *ifdev, int rate);
|
||||
virtual ~osd_netdev();
|
||||
void close();
|
||||
void stop();
|
||||
|
||||
virtual int send(uint8_t *buf, int len);
|
||||
virtual void set_mac(const char *mac);
|
||||
|
Loading…
Reference in New Issue
Block a user