diff options
Diffstat (limited to 'PcsxSrc/Linux/GtkGui.c')
-rw-r--r-- | PcsxSrc/Linux/GtkGui.c | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/PcsxSrc/Linux/GtkGui.c b/PcsxSrc/Linux/GtkGui.c index c3d8f4f..03ab7a1 100644 --- a/PcsxSrc/Linux/GtkGui.c +++ b/PcsxSrc/Linux/GtkGui.c @@ -64,6 +64,7 @@ void OnHelp_About(); GtkWidget *Window = NULL;
GtkWidget *ConfDlg;
+GtkWidget *DebugDlg; GtkWidget *AboutDlg;
GtkWidget *FileSel;
@@ -803,6 +804,9 @@ void OnCpu_Ok() { psxCpu->Reset();
}
+ Btn = lookup_widget(CpuDlg, "GtkCheckButton_CpuLog"); + Config.Log = gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(Btn)); + Btn = lookup_widget(CpuDlg, "GtkCheckButton_PsxOut");
Config.PsxOut = gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(Btn));
@@ -858,6 +862,9 @@ void OnConf_Cpu() { Btn = lookup_widget(CpuDlg, "GtkCheckButton_Cpu");
gtk_toggle_button_set_state(GTK_TOGGLE_BUTTON(Btn), Config.Cpu);
+ Btn = lookup_widget(CpuDlg, "GtkCheckButton_CpuLog");
+ gtk_toggle_button_set_state(GTK_TOGGLE_BUTTON(Btn), Config.Log);
+
Btn = lookup_widget(CpuDlg, "GtkCheckButton_PsxOut");
gtk_toggle_button_set_state(GTK_TOGGLE_BUTTON(Btn), Config.PsxOut);
@@ -1093,6 +1100,20 @@ void OnConf_Conf() { if (Window != NULL) gtk_widget_set_sensitive(Window, FALSE);
gtk_main();
}
+ +void OnDebug() { + DebugDlg = create_DebugDlg(); + gtk_widget_show_all(DebugDlg); + + if (Window != NULL) gtk_widget_set_sensitive(Window, FALSE); + gtk_main(); +} + +void OnDebug_Ok() { + gtk_widget_destroy(DebugDlg);
+ if (Window != NULL) gtk_widget_set_sensitive(Window, TRUE);
+ gtk_main_quit();
+} void OnHelp_Help() {
}
|