mirror of
https://github.com/AppleWin/AppleWin.git
synced 2025-08-15 18:27:29 +00:00
U1, U2: small refactor
This commit is contained in:
@@ -37,7 +37,6 @@
|
|||||||
#include "Tfe/tfesupp.h"
|
#include "Tfe/tfesupp.h"
|
||||||
#include "Tfe/NetworkBackend.h"
|
#include "Tfe/NetworkBackend.h"
|
||||||
#include "Tfe/PCapBackend.h"
|
#include "Tfe/PCapBackend.h"
|
||||||
#include "../Windows/Win32Frame.h"
|
|
||||||
|
|
||||||
/* Makros for reading and writing the visible TFE register: */
|
/* Makros for reading and writing the visible TFE register: */
|
||||||
#define GET_TFE_8( _xxx_ ) \
|
#define GET_TFE_8( _xxx_ ) \
|
||||||
@@ -1023,7 +1022,7 @@ void Uthernet1::InitializeIO(LPBYTE pCxRomPeripheral)
|
|||||||
// Interface doesn't exist or user picked an interface that isn't Ethernet!
|
// Interface doesn't exist or user picked an interface that isn't Ethernet!
|
||||||
// . So setup as a "null" card: I/O reads from floating bus & writes go to null
|
// . So setup as a "null" card: I/O reads from floating bus & writes go to null
|
||||||
RegisterIoHandler(m_slot, IO_Null, IO_Null, TfeIoCxxx, TfeIoCxxx, this, NULL);
|
RegisterIoHandler(m_slot, IO_Null, IO_Null, TfeIoCxxx, TfeIoCxxx, this, NULL);
|
||||||
Win32Frame::GetWin32Frame().FrameMessageBox("Reconfigure the Interface via 'Ethernet Settings'.", "Uthernet 1 interface isn't valid!", MB_ICONEXCLAMATION | MB_SETFOREGROUND);
|
GetFrame().FrameMessageBox("Uthernet interface isn't valid!\nReconfigure the Interface via 'Ethernet Settings'.", "Uthernet Interface", MB_ICONEXCLAMATION | MB_SETFOREGROUND);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -28,7 +28,6 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|||||||
#include "Tfe/DNS.h"
|
#include "Tfe/DNS.h"
|
||||||
#include "W5100.h"
|
#include "W5100.h"
|
||||||
#include "../Registry.h"
|
#include "../Registry.h"
|
||||||
#include "../Windows/Win32Frame.h"
|
|
||||||
|
|
||||||
// Virtual DNS
|
// Virtual DNS
|
||||||
// Virtual DNS is an extension to the W5100
|
// Virtual DNS is an extension to the W5100
|
||||||
@@ -1480,7 +1479,7 @@ void Uthernet2::InitializeIO(LPBYTE pCxRomPeripheral)
|
|||||||
// Interface doesn't exist or user picked an interface that isn't Ethernet!
|
// Interface doesn't exist or user picked an interface that isn't Ethernet!
|
||||||
// . So setup as a "null" card: I/O reads from floating bus & writes go to null
|
// . So setup as a "null" card: I/O reads from floating bus & writes go to null
|
||||||
RegisterIoHandler(m_slot, IO_Null, IO_Null, IO_Null, IO_Null, this, nullptr);
|
RegisterIoHandler(m_slot, IO_Null, IO_Null, IO_Null, IO_Null, this, nullptr);
|
||||||
Win32Frame::GetWin32Frame().FrameMessageBox("Reconfigure the Interface via 'Ethernet Settings'.", "Uthernet II interface isn't valid!", MB_ICONEXCLAMATION | MB_SETFOREGROUND);
|
GetFrame().FrameMessageBox("Uthernet II interface isn't valid!\nReconfigure the Interface via 'Ethernet Settings'.", "Uthernet Interface", MB_ICONEXCLAMATION | MB_SETFOREGROUND);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user