/* View menu options */
cfg->layout = UI_LAYOUT1;
cfg->view_int_memory = 1;
- cfg->view_sfr_memory = 1;
cfg->view_ext_memory = 1;
cfg->bytes_per_row = 16; /* 8 or 16 */
}
}
app_config_key_file_get_int(kf, "view", "int_memory",
&cfg->view_int_memory);
- app_config_key_file_get_int(kf, "view", "sfr_memory",
- &cfg->view_sfr_memory);
app_config_key_file_get_int(kf, "view", "ext_memory",
&cfg->view_ext_memory);
app_config_key_file_get_int(kf, "view", "bytes_per_row",
g_string_append_printf(buf, "layout=%d\n", cfg->layout);
g_string_append_printf(buf, "int_memory=%d\n",
cfg->view_int_memory);
- g_string_append_printf(buf, "sfr_memory=%d\n",
- cfg->view_sfr_memory);
g_string_append_printf(buf, "ext_memory=%d\n",
cfg->view_ext_memory);
g_string_append_printf(buf, "bytes_per_row=%d\n",
/* View menu options */
int layout; /* UI Layout 1 or 2 */
int view_int_memory;
- int view_sfr_memory;
int view_ext_memory;
int bytes_per_row; /* 8 or 16 */
};
emugtk_restart_gui();
}
-void toggle_sfr_memory(GtkWidget *widget, gpointer data)
-{
- (void) data; /* Remove compiler warning about unused variables. */
-
- if (gtk_check_menu_item_get_active(GTK_CHECK_MENU_ITEM(widget))) {
- log_info(" View SFR memory");
- cfg->view_sfr_memory = 1;
- } else {
- cfg->view_sfr_memory = 0;
- }
-
- emugtk_restart_gui();
-}
-
void toggle_ext_memory(GtkWidget *widget, gpointer data)
{
(void) data; /* Remove compiler warning about unused variables. */
g_signal_connect(G_OBJECT(item), "activate",
G_CALLBACK(toggle_int_memory), NULL);
- item = gtk_check_menu_item_new_with_label("SFR Memory");
- gtk_menu_shell_append(GTK_MENU_SHELL(menu), item);
- gtk_check_menu_item_set_active(GTK_CHECK_MENU_ITEM(item),
- cfg->view_sfr_memory);
- g_signal_connect(G_OBJECT(item), "activate",
- G_CALLBACK(toggle_sfr_memory), NULL);
-
item = gtk_check_menu_item_new_with_label("External Memory");
gtk_menu_shell_append(GTK_MENU_SHELL(menu), item);
gtk_check_menu_item_set_active(GTK_CHECK_MENU_ITEM(item),