summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/network.cpp
diff options
context:
space:
mode:
author Vas Crabb <cuavas@users.noreply.github.com>2024-02-25 02:25:23 +1100
committer GitHub <noreply@github.com>2024-02-25 02:25:23 +1100
commitd98993d7ff92cf07b9378bd79f358e37dc8e2084 (patch)
treed69080085f1bb841012a83206846c40a1a078254 /src/emu/network.cpp
parentd1501f28ebab5f49d4b75d5c9957afb6f4062e10 (diff)
osd/osdnet.cpp: Removed dependency from OSD network device to libemu. (#12058)
* This allows save states to be created and loaded when network interfaces are present. * device_network_interface may need some more attention to get save states taken while receiving a packet to work properly.
Diffstat (limited to 'src/emu/network.cpp')
-rw-r--r--src/emu/network.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/emu/network.cpp b/src/emu/network.cpp
index 4566298a994..f5e065ac9cb 100644
--- a/src/emu/network.cpp
+++ b/src/emu/network.cpp
@@ -87,9 +87,9 @@ void network_manager::config_save(config_type cfg_type, util::xml::data_node *pa
{
node->set_attribute("tag", network.device().tag());
node->set_attribute_int("interface", network.get_interface());
- const char *mac = network.get_mac();
+ const std::array<u8, 6> &mac = network.get_mac();
char mac_addr[6 * 3];
- sprintf(mac_addr, "%02x:%02x:%02x:%02x:%02x:%02x", u8(mac[0]), u8(mac[1]), u8(mac[2]), u8(mac[3]), u8(mac[4]), u8(mac[5]));
+ sprintf(mac_addr, "%02x:%02x:%02x:%02x:%02x:%02x", mac[0], mac[1], mac[2], mac[3], mac[4], mac[5]);
node->set_attribute("mac", mac_addr);
}
}