summaryrefslogtreecommitdiff
path: root/gui/ConfDlg.c
diff options
context:
space:
mode:
authorXavier Del Campo Romero <xavi.dcr@tutanota.com>2020-06-04 23:47:45 +0200
committerXavier Del Campo Romero <xavi.dcr@tutanota.com>2020-06-04 23:47:45 +0200
commit0521d579639d32587fb8f65eb28a29d3b63be88b (patch)
tree1b0da4268222ff9a67d61ea6de9bf2bc3ae01c48 /gui/ConfDlg.c
parent85141ac554d346cd47041a51f6e828a121c568d2 (diff)
parent66d4b1aff798e2890b2bf355d7c0e3f546a1b06b (diff)
downloadpcsxr-0521d579639d32587fb8f65eb28a29d3b63be88b.tar.gz
Merge branch 'multisockets'
Diffstat (limited to 'gui/ConfDlg.c')
-rw-r--r--gui/ConfDlg.c15
1 files changed, 10 insertions, 5 deletions
diff --git a/gui/ConfDlg.c b/gui/ConfDlg.c
index d55234f8..f41dd9ed 100644
--- a/gui/ConfDlg.c
+++ b/gui/ConfDlg.c
@@ -32,6 +32,7 @@
#include "ConfDlg.h"
#include "../libpcsxcore/plugins.h"
+#include "../gdbstub/gdbstub_sys.h"
static void OnBiosPath_Changed(GtkWidget *wdg, gpointer data);
static void OnConf_Clicked(GtkDialog *dialog, gint arg1, gpointer user_data);
@@ -109,7 +110,7 @@ void ConfigurePlugins() {
UpdatePluginsBIOS_UpdateGUI(builder);
ConfDlg = GTK_WIDGET(gtk_builder_get_object(builder, "ConfDlg"));
-
+
gtk_window_set_title(GTK_WINDOW(ConfDlg), _("Configure PCSXR"));
gtk_widget_show (ConfDlg);
@@ -219,7 +220,7 @@ void OnConf_Net() {
}
NetDlg = GTK_WIDGET(gtk_builder_get_object(builder, "NetDlg"));
-
+
gtk_widget_show (NetDlg);
FindNetPlugin(builder);
@@ -791,7 +792,7 @@ static void FindNetPlugin() {
char plugin[MAXPATHLEN],name[MAXPATHLEN];
NetConfS.plugins = 0;
- NetConfS.glist = NULL;
+ NetConfS.glist = NULL;
NetConfS.plugins += 2;
strcpy(NetConfS.plist[NetConfS.plugins - 1], "Disabled");
@@ -894,7 +895,7 @@ void OnCpu_Clicked(GtkDialog *dialog, gint arg1, gpointer user_data) {
// If nothing chosen, default to NTSC
tmp = gtk_combo_box_get_active (GTK_COMBO_BOX (widget));
- if (tmp == -1)
+ if (tmp == -1)
tmp = PSX_TYPE_NTSC;
if (!strcmp("NTSC", psxtypes[tmp]))
@@ -920,6 +921,7 @@ void OnCpu_Clicked(GtkDialog *dialog, gint arg1, gpointer user_data) {
Config.Cdda = gtk_combo_box_get_active(GTK_COMBO_BOX(gtk_builder_get_object(builder, "GtkCombo_CDDA")));
Config.SlowBoot = gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(gtk_builder_get_object(builder, "GtkCheckButton_SlowBoot")));
Config.PsxAuto = gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(gtk_builder_get_object(builder, "GtkCheckButton_PsxAuto")));
+ Config.GdbServer = gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(gtk_builder_get_object(builder, "GtkCheckButton_GdbServer")));
t = Config.Debug;
Config.Debug = gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(gtk_builder_get_object(builder, "GtkCheckButton_Dbg")));
@@ -928,6 +930,9 @@ void OnCpu_Clicked(GtkDialog *dialog, gint arg1, gpointer user_data) {
else StopDebugger();
}
+ if (Config.GdbServer)
+ dbg_start();
+
t = Config.Cpu;
Config.Cpu = gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(gtk_builder_get_object(builder, "GtkCheckButton_Cpu")));
if (t != Config.Cpu) {
@@ -974,7 +979,7 @@ void OnConf_Cpu() {
char buf[25];
builder = gtk_builder_new();
-
+
if (!gtk_builder_add_from_resource(builder, "/org/pcsxr/gui/pcsxr.ui", NULL)) {
g_warning("Error: interface could not be loaded!");
return;