emugtk_restart_gui();
}
+void toggle_sfr_memory(GtkWidget *widget, gpointer data)
+{
+ 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)
{
if (gtk_check_menu_item_get_active(GTK_CHECK_MENU_ITEM(widget))) {
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),