MCPcopy Create free account
hub / github.com/AppleWin/AppleWin / InitializeIO

Method InitializeIO

source/Uthernet1.cpp:1020–1031  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1018}
1019
1020void Uthernet1::InitializeIO(LPBYTE pCxRomPeripheral)
1021{
1022 const std::string interfaceName = PCapBackend::GetRegistryInterface(m_slot);
1023 networkBackend = GetFrame().CreateNetworkBackend(interfaceName);
1024 if (!networkBackend->isValid())
1025 {
1026 // Interface doesn't exist or user picked an interface that isn't Ethernet!
1027 GetFrame().FrameMessageBox("Uthernet interface isn't valid!\nReconfigure the Interface via 'Ethernet Settings'.", "Uthernet Interface", MB_ICONEXCLAMATION | MB_SETFOREGROUND);
1028 }
1029
1030 RegisterIoHandler(m_slot, TfeIo, TfeIo, TfeIoCxxx, TfeIoCxxx, this, NULL);
1031}
1032
1033void Uthernet1::Reset(const bool powerCycle)
1034{

Callers

nothing calls this directly

Calls 4

RegisterIoHandlerFunction · 0.85
CreateNetworkBackendMethod · 0.80
isValidMethod · 0.80
FrameMessageBoxMethod · 0.80

Tested by

no test coverage detected