diff options
author | Marcoen Hirschberg <marcoen@gmail.com> | 2006-08-30 23:47:09 +0000 |
---|---|---|
committer | Marcoen Hirschberg <marcoen@gmail.com> | 2006-08-30 23:47:09 +0000 |
commit | ae8d47574d01e1aae45b905d17c912e235230f9b (patch) | |
tree | a674afd45830563aa84f897a684d1dfed3c77640 /tools/descramble.c | |
parent | 530f31dbe9fe404d41fd21867c8ed9cec1addd96 (diff) | |
download | rockbox-ae8d47574d01e1aae45b905d17c912e235230f9b.tar.gz rockbox-ae8d47574d01e1aae45b905d17c912e235230f9b.zip |
add Gigabeat support to the scramble tools
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10817 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'tools/descramble.c')
-rw-r--r-- | tools/descramble.c | 8 |
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 | ||
26 | int iaudio_decode(char *iname, char *oname); | 27 | int 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]; |