| 1472 | } |
| 1473 | |
| 1474 | void Uthernet2::InitializeIO(LPBYTE pCxRomPeripheral) |
| 1475 | { |
| 1476 | const std::string interfaceName = PCapBackend::GetRegistryInterface(m_slot); |
| 1477 | myNetworkBackend = GetFrame().CreateNetworkBackend(interfaceName); |
| 1478 | if (!myNetworkBackend->isValid()) |
| 1479 | { |
| 1480 | // Interface doesn't exist or user picked an interface that isn't Ethernet! |
| 1481 | GetFrame().FrameMessageBox("Uthernet II interface isn't valid!\nReconfigure the Interface via 'Ethernet Settings'.", "Uthernet Interface", MB_ICONEXCLAMATION | MB_SETFOREGROUND); |
| 1482 | } |
| 1483 | |
| 1484 | RegisterIoHandler(m_slot, u2_C0, u2_C0, IO_Null, IO_Null, this, nullptr); |
| 1485 | } |
| 1486 | |
| 1487 | void Uthernet2::getMACAddress(const uint32_t address, const MACAddress * & mac) |
| 1488 | { |
nothing calls this directly
no test coverage detected