diff options
Diffstat (limited to 'tools/scramble.c')
-rw-r--r-- | tools/scramble.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tools/scramble.c b/tools/scramble.c index d1e3d1d341..7d7465a932 100644 --- a/tools/scramble.c +++ b/tools/scramble.c | |||
@@ -22,6 +22,7 @@ | |||
22 | #include <stdbool.h> | 22 | #include <stdbool.h> |
23 | #include <string.h> | 23 | #include <string.h> |
24 | #include "iriver.h" | 24 | #include "iriver.h" |
25 | #include "gigabeat.h" | ||
25 | #include "mi4.h" | 26 | #include "mi4.h" |
26 | 27 | ||
27 | int iaudio_encode(char *iname, char *oname, char *idstring); | 28 | int iaudio_encode(char *iname, char *oname, char *idstring); |
@@ -83,6 +84,7 @@ void usage(void) | |||
83 | "\t-ipod3g ipod firmware partition format (3rd Gen)\n" | 84 | "\t-ipod3g ipod firmware partition format (3rd Gen)\n" |
84 | "\t-ipod4g ipod firmware partition format (4th Gen, Mini, Nano, Photo/Color)\n" | 85 | "\t-ipod4g ipod firmware partition format (4th Gen, Mini, Nano, Photo/Color)\n" |
85 | "\t-ipod5g ipod firmware partition format (5th Gen - aka Video)\n" | 86 | "\t-ipod5g ipod firmware partition format (5th Gen - aka Video)\n" |
87 | "\t-gigabeat Toshiba Gigabeat format\n" | ||
86 | "\t-mi4v2 PortalPlayer .mi4 format (revision 010201)\n" | 88 | "\t-mi4v2 PortalPlayer .mi4 format (revision 010201)\n" |
87 | "\t-mi4v3 PortalPlayer .mi4 format (revision 010301)\n" | 89 | "\t-mi4v3 PortalPlayer .mi4 format (revision 010301)\n" |
88 | "\t-add=X Rockbox generic \"add-up\" checksum format\n" | 90 | "\t-add=X Rockbox generic \"add-up\" checksum format\n" |
@@ -219,6 +221,13 @@ int main (int argc, char** argv) | |||
219 | iriver_encode(iname, oname, FALSE); | 221 | iriver_encode(iname, oname, FALSE); |
220 | return 0; | 222 | return 0; |
221 | } | 223 | } |
224 | else if(!strcmp(argv[1], "-gigabeat")) { | ||
225 | /* iRiver code dealt with in the iriver.c code */ | ||
226 | iname = argv[2]; | ||
227 | oname = argv[3]; | ||
228 | gigabeat_code(iname, oname); | ||
229 | return 0; | ||
230 | } | ||
222 | else if(!strcmp(argv[1], "-iaudiox5")) { | 231 | else if(!strcmp(argv[1], "-iaudiox5")) { |
223 | iname = argv[2]; | 232 | iname = argv[2]; |
224 | oname = argv[3]; | 233 | oname = argv[3]; |