update GUI with ether "slirp" on win32

This commit is contained in:
gbeauche 2006-04-29 14:15:01 +00:00
parent 08a6e383e8
commit 6a035aa279

View File

@ -1388,6 +1388,13 @@ static void mn_ether_router(void)
PrefsRemoveItem("etherguid");
}
// Ethernet option "Basilisk II Slirp" selected
static void mn_ether_slirp(void)
{
PrefsReplaceString("ether", "slirp");
PrefsRemoveItem("etherguid");
}
// Ethernet option for Basilisk II driver selected
static void mn_ether_b2ether(GtkWidget *, const char *guid)
{
@ -1413,6 +1420,11 @@ static int create_ether_menu(GtkWidget *menu)
active = n_items;
n_items++;
add_menu_item(menu, "Basilisk II Slirp", (GtkSignalFunc)mn_ether_router);
if (ether && strcmp(ether, "slirp") == 0)
active = n_items;
n_items++;
PacketOpenAdapter("", 0);
{
ULONG sz;