mirror of
https://github.com/kanjitalk755/macemu.git
synced 2024-11-25 18:31:14 +00:00
Add "idlewait" to Basilisk II for Windows
This commit is contained in:
parent
5aa8c9f86f
commit
8ccf336660
@ -1523,12 +1523,10 @@ static GtkWidget *w_ramsize;
|
|||||||
static GtkWidget *w_rom_file;
|
static GtkWidget *w_rom_file;
|
||||||
|
|
||||||
// Don't use CPU when idle?
|
// Don't use CPU when idle?
|
||||||
#ifdef SHEEPSHAVER
|
|
||||||
static void tb_idlewait(GtkWidget *widget)
|
static void tb_idlewait(GtkWidget *widget)
|
||||||
{
|
{
|
||||||
PrefsReplaceBool("idlewait", GTK_TOGGLE_BUTTON(widget)->active);
|
PrefsReplaceBool("idlewait", GTK_TOGGLE_BUTTON(widget)->active);
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
// "Ignore SEGV" button toggled
|
// "Ignore SEGV" button toggled
|
||||||
#ifdef HAVE_SIGSEGV_SKIP_INSTRUCTION
|
#ifdef HAVE_SIGSEGV_SKIP_INSTRUCTION
|
||||||
@ -1628,13 +1626,11 @@ static void create_memory_pane(GtkWidget *top)
|
|||||||
|
|
||||||
w_rom_file = table_make_file_entry(table, 4, STR_ROM_FILE_CTRL, "rom");
|
w_rom_file = table_make_file_entry(table, 4, STR_ROM_FILE_CTRL, "rom");
|
||||||
|
|
||||||
|
make_checkbox(box, STR_IDLEWAIT_CTRL, "idlewait", GTK_SIGNAL_FUNC(tb_idlewait));
|
||||||
|
|
||||||
#ifdef HAVE_SIGSEGV_SKIP_INSTRUCTION
|
#ifdef HAVE_SIGSEGV_SKIP_INSTRUCTION
|
||||||
make_checkbox(box, STR_IGNORESEGV_CTRL, "ignoresegv", GTK_SIGNAL_FUNC(tb_ignoresegv));
|
make_checkbox(box, STR_IGNORESEGV_CTRL, "ignoresegv", GTK_SIGNAL_FUNC(tb_ignoresegv));
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef SHEEPSHAVER
|
|
||||||
make_checkbox(box, STR_IDLEWAIT_CTRL, "idlewait", GTK_SIGNAL_FUNC(tb_idlewait));
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -41,6 +41,7 @@ prefs_desc platform_prefs_items[] = {
|
|||||||
#ifdef HAVE_SIGSEGV_SKIP_INSTRUCTION
|
#ifdef HAVE_SIGSEGV_SKIP_INSTRUCTION
|
||||||
{"ignoresegv", TYPE_BOOLEAN, false, "ignore illegal memory accesses"},
|
{"ignoresegv", TYPE_BOOLEAN, false, "ignore illegal memory accesses"},
|
||||||
#endif
|
#endif
|
||||||
|
{"idlewait", TYPE_BOOLEAN, false, "sleep when idle"},
|
||||||
{"enableextfs", TYPE_BOOLEAN, false, "enable extfs system"},
|
{"enableextfs", TYPE_BOOLEAN, false, "enable extfs system"},
|
||||||
{"debugextfs", TYPE_BOOLEAN, false, "debug extfs system"},
|
{"debugextfs", TYPE_BOOLEAN, false, "debug extfs system"},
|
||||||
{"extdrives", TYPE_STRING, false, "define allowed extfs drives"},
|
{"extdrives", TYPE_STRING, false, "define allowed extfs drives"},
|
||||||
@ -129,6 +130,7 @@ void AddPlatformPrefsDefaults(void)
|
|||||||
#ifdef HAVE_SIGSEGV_SKIP_INSTRUCTION
|
#ifdef HAVE_SIGSEGV_SKIP_INSTRUCTION
|
||||||
PrefsAddBool("ignoresegv", false);
|
PrefsAddBool("ignoresegv", false);
|
||||||
#endif
|
#endif
|
||||||
|
PrefsAddBool("idlewait", true);
|
||||||
PrefsReplaceBool("etherpermanentaddress", true);
|
PrefsReplaceBool("etherpermanentaddress", true);
|
||||||
PrefsReplaceInt32("ethermulticastmode", 0);
|
PrefsReplaceInt32("ethermulticastmode", 0);
|
||||||
PrefsReplaceString("ftp_port_list", "21");
|
PrefsReplaceString("ftp_port_list", "21");
|
||||||
|
Loading…
Reference in New Issue
Block a user