summaryrefslogtreecommitdiff
path: root/tools/descramble.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/descramble.c')
-rw-r--r--tools/descramble.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/tools/descramble.c b/tools/descramble.c
index 9b76eaa0d9..bfcf7062f7 100644
--- a/tools/descramble.c
+++ b/tools/descramble.c
@@ -22,6 +22,7 @@
22#include <string.h> 22#include <string.h>
23 23
24#include "iriver.h" 24#include "iriver.h"
25#include "gigabeat.h"
25 26
26int iaudio_decode(char *iname, char *oname); 27int iaudio_decode(char *iname, char *oname);
27 28
@@ -33,6 +34,7 @@ void usage(void)
33 "\t-v2 Archos V2 recorder format\n" 34 "\t-v2 Archos V2 recorder format\n"
34 "\t-mm=X Archos Multimedia format (X values: A=JBMM, B=AV1xx, C=AV3xx)\n" 35 "\t-mm=X Archos Multimedia format (X values: A=JBMM, B=AV1xx, C=AV3xx)\n"
35 "\t-iriver iRiver format\n" 36 "\t-iriver iRiver format\n"
37 "\t-gigabeat Toshiba Gigabeat format\n"
36 "\t-iaudio iAudio format\n" 38 "\t-iaudio iAudio format\n"
37 "\nNo option assumes Archos standard player/recorder format.\n"); 39 "\nNo option assumes Archos standard player/recorder format.\n");
38 exit(1); 40 exit(1);
@@ -73,6 +75,12 @@ int main (int argc, char** argv)
73 iriver_decode(iname, oname, FALSE, STRIP_NONE); 75 iriver_decode(iname, oname, FALSE, STRIP_NONE);
74 return 0; 76 return 0;
75 } 77 }
78 if(!strcmp(argv[1], "-gigabeat")) {
79 iname = argv[2];
80 oname = argv[3];
81 gigabeat_code(iname, oname);
82 return 0;
83 }
76 84
77 if(!strcmp(argv[1], "-iaudio")) { 85 if(!strcmp(argv[1], "-iaudio")) {
78 iname = argv[2]; 86 iname = argv[2];