summaryrefslogtreecommitdiff
path: root/plugins/dfinput/cfg-gtk.c
diff options
context:
space:
mode:
authorSND\edgbla_cp <SND\edgbla_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2013-02-23 02:54:51 +0000
committerSND\edgbla_cp <SND\edgbla_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2013-02-23 02:54:51 +0000
commit56fc32e977409e38b09bf4820244b3699f1e3b4c (patch)
tree43511dafd5af0c5ecee323784379efbfc906d08d /plugins/dfinput/cfg-gtk.c
parentd3b43b5b645e6f2f80de3fa25b43a18ba8ca2eb2 (diff)
downloadpcsxr-56fc32e977409e38b09bf4820244b3699f1e3b4c.tar.gz
.
git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@83100 e17a0e51-4ae3-4d35-97c3-1a29b211df97
Diffstat (limited to 'plugins/dfinput/cfg-gtk.c')
-rwxr-xr-xplugins/dfinput/cfg-gtk.c18
1 files changed, 14 insertions, 4 deletions
diff --git a/plugins/dfinput/cfg-gtk.c b/plugins/dfinput/cfg-gtk.c
index 941d7848..6b82a753 100755
--- a/plugins/dfinput/cfg-gtk.c
+++ b/plugins/dfinput/cfg-gtk.c
@@ -775,11 +775,21 @@ int main(int argc, char *argv[]) {
gtk_init(&argc, &argv);
- if (argc > 1 && !strcmp(argv[1], "-about")) {
- PADabout();
- } else {
- PADconfigure();
+ if (argc < 2) {
+ printf ("Usage: cfgDFInput {about | configure}\n");
+ return 0;
}
+ if (strcmp(argv[1], "configure") != 0 &&
+ strcmp(argv[1], "about") != 0) {
+ printf ("Usage: cfgDFInput {about | configure}\n");
+ return 0;
+ }
+
+ if(!strcmp(argv[1], "configure"))
+ PADconfigure();
+ else if(!strcmp(argv[1], "about"))
+ PADabout();
+
return 0;
}