1388 |
|
PrefsRemoveItem("etherguid"); |
1389 |
|
} |
1390 |
|
|
1391 |
+ |
// Ethernet option "Basilisk II Slirp" selected |
1392 |
+ |
static void mn_ether_slirp(void) |
1393 |
+ |
{ |
1394 |
+ |
PrefsReplaceString("ether", "slirp"); |
1395 |
+ |
PrefsRemoveItem("etherguid"); |
1396 |
+ |
} |
1397 |
+ |
|
1398 |
|
// Ethernet option for Basilisk II driver selected |
1399 |
|
static void mn_ether_b2ether(GtkWidget *, const char *guid) |
1400 |
|
{ |
1420 |
|
active = n_items; |
1421 |
|
n_items++; |
1422 |
|
|
1423 |
+ |
add_menu_item(menu, "Basilisk II Slirp", (GtkSignalFunc)mn_ether_router); |
1424 |
+ |
if (ether && strcmp(ether, "slirp") == 0) |
1425 |
+ |
active = n_items; |
1426 |
+ |
n_items++; |
1427 |
+ |
|
1428 |
|
PacketOpenAdapter("", 0); |
1429 |
|
{ |
1430 |
|
ULONG sz; |
1523 |
|
static GtkWidget *w_rom_file; |
1524 |
|
|
1525 |
|
// Don't use CPU when idle? |
1514 |
– |
#ifdef SHEEPSHAVER |
1526 |
|
static void tb_idlewait(GtkWidget *widget) |
1527 |
|
{ |
1528 |
|
PrefsReplaceBool("idlewait", GTK_TOGGLE_BUTTON(widget)->active); |
1529 |
|
} |
1519 |
– |
#endif |
1530 |
|
|
1531 |
|
// "Ignore SEGV" button toggled |
1532 |
|
#ifdef HAVE_SIGSEGV_SKIP_INSTRUCTION |
1626 |
|
|
1627 |
|
w_rom_file = table_make_file_entry(table, 4, STR_ROM_FILE_CTRL, "rom"); |
1628 |
|
|
1629 |
+ |
make_checkbox(box, STR_IDLEWAIT_CTRL, "idlewait", GTK_SIGNAL_FUNC(tb_idlewait)); |
1630 |
+ |
|
1631 |
|
#ifdef HAVE_SIGSEGV_SKIP_INSTRUCTION |
1632 |
|
make_checkbox(box, STR_IGNORESEGV_CTRL, "ignoresegv", GTK_SIGNAL_FUNC(tb_ignoresegv)); |
1633 |
|
#endif |
1622 |
– |
|
1623 |
– |
#ifdef SHEEPSHAVER |
1624 |
– |
make_checkbox(box, STR_IDLEWAIT_CTRL, "idlewait", GTK_SIGNAL_FUNC(tb_idlewait)); |
1625 |
– |
#endif |
1634 |
|
} |
1635 |
|
|
1636 |
|
|