summaryrefslogtreecommitdiff
path: root/plugins/bladesio1/gui.c
diff options
context:
space:
mode:
authorSND\edgbla_cp <SND\edgbla_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2013-02-14 23:14:57 +0000
committerSND\edgbla_cp <SND\edgbla_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2013-02-14 23:14:57 +0000
commitbb9c6f0355aacbdddc5e83de8ab0e2707d1348e5 (patch)
tree898306ea1071621ab76f907a8dfab7629178d681 /plugins/bladesio1/gui.c
parentf1d5f92e6bfbff24667a766610f7171bcf6d7116 (diff)
downloadpcsxr-bb9c6f0355aacbdddc5e83de8ab0e2707d1348e5.tar.gz
...
git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@82904 e17a0e51-4ae3-4d35-97c3-1a29b211df97
Diffstat (limited to 'plugins/bladesio1/gui.c')
-rw-r--r--plugins/bladesio1/gui.c44
1 files changed, 34 insertions, 10 deletions
diff --git a/plugins/bladesio1/gui.c b/plugins/bladesio1/gui.c
index d08d308f..e7839e68 100644
--- a/plugins/bladesio1/gui.c
+++ b/plugins/bladesio1/gui.c
@@ -5,6 +5,9 @@
#include <gdk/gdk.h>
#include <gtk/gtk.h>
+#include "psxcommon.h"
+#include "psemu_plugin_defs.h"
+
#include "settings.h"
#include "sio1.h"
@@ -14,7 +17,8 @@ Settings settings;
/******************************************************************************/
-long CFGopen()
+static
+s32 configure()
{
GtkBuilder *builder;
GtkWidget *widget, *MainWindow;
@@ -64,22 +68,42 @@ long CFGopen()
return 0;
}
-int main( int argc, char *argv[] )
+static
+s32 about()
+{
+ const char *authors[]= {"edgbla <edgbla@yandex.ru>", NULL};
+ GtkWidget *widget;
+
+ widget = gtk_about_dialog_new();
+ gtk_about_dialog_set_program_name(GTK_ABOUT_DIALOG(widget), "Link Cable");
+ gtk_about_dialog_set_version(GTK_ABOUT_DIALOG(widget), "1.0");
+ gtk_about_dialog_set_authors(GTK_ABOUT_DIALOG(widget), authors);
+ gtk_about_dialog_set_website(GTK_ABOUT_DIALOG(widget), "http://www.codeplex.com/pcsxr/");
+
+ gtk_dialog_run(GTK_DIALOG(widget));
+ gtk_widget_destroy(widget);
+}
+
+int main(int argc, char *argv[])
{
#ifdef ENABLE_NLS
- setlocale( LC_ALL, "" );
- bindtextdomain( GETTEXT_PACKAGE, LOCALE_DIR );
- bind_textdomain_codeset( GETTEXT_PACKAGE, "UTF-8" );
- textdomain( GETTEXT_PACKAGE );
+ setlocale(LC_ALL, "");
+ bindtextdomain(GETTEXT_PACKAGE, LOCALE_DIR);
+ bind_textdomain_codeset(GETTEXT_PACKAGE, "UTF-8");
+ textdomain(GETTEXT_PACKAGE);
#endif
- gtk_init( &argc, &argv );
+ gtk_init(&argc, &argv);
- if( argc > 1 )
+ if(argc > 1)
{
- if( !strcmp(argv[1], "open") )
+ if(!strcmp(argv[1], "configure"))
+ {
+ return configure();
+ }
+ if(!strcmp(argv[1], "about"))
{
- return CFGopen();
+ return about();
}
}