diff options
| author | SND\edgbla_cp <SND\edgbla_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97> | 2013-02-23 02:54:51 +0000 |
|---|---|---|
| committer | SND\edgbla_cp <SND\edgbla_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97> | 2013-02-23 02:54:51 +0000 |
| commit | 56fc32e977409e38b09bf4820244b3699f1e3b4c (patch) | |
| tree | 43511dafd5af0c5ecee323784379efbfc906d08d /plugins/dfinput | |
| parent | d3b43b5b645e6f2f80de3fa25b43a18ba8ca2eb2 (diff) | |
| download | pcsxr-56fc32e977409e38b09bf4820244b3699f1e3b4c.tar.gz | |
.
git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@83100 e17a0e51-4ae3-4d35-97c3-1a29b211df97
Diffstat (limited to 'plugins/dfinput')
| -rwxr-xr-x | plugins/dfinput/cfg-gtk.c | 18 | ||||
| -rwxr-xr-x | plugins/dfinput/pad.c | 4 |
2 files changed, 16 insertions, 6 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; } diff --git a/plugins/dfinput/pad.c b/plugins/dfinput/pad.c index e4dc52b0..1a11dd41 100755 --- a/plugins/dfinput/pad.c +++ b/plugins/dfinput/pad.c @@ -655,7 +655,7 @@ long PADconfigure(void) { if (pid == 0) { if (fork() == 0) { - execl("cfg/cfgDFInput", "cfgDFInput", NULL); + execl("cfg/cfgDFInput", "cfgDFInput", "configure", NULL); } exit(0); } else if (pid > 0) { @@ -670,7 +670,7 @@ void PADabout(void) { if (pid == 0) { if (fork() == 0) { - execl("cfg/cfgDFInput", "cfgDFInput", "-about", NULL); + execl("cfg/cfgDFInput", "cfgDFInput", "about", NULL); } exit(0); } else if (pid > 0) { |
