diff options
author | Amaury Pouly <amaury.pouly@gmail.com> | 2013-10-22 00:20:18 +0200 |
---|---|---|
committer | Amaury Pouly <amaury.pouly@gmail.com> | 2013-10-22 00:34:35 +0200 |
commit | 4da8a441d103c40ecc9c1f84cb5bef49ca8c1e8f (patch) | |
tree | 9e3689c198690a6beb0e6a63803d7b5b065b6f8d /tools/scramble.c | |
parent | 0ff8ce764e32127ee7695f64d7cb35e4b277c207 (diff) | |
download | rockbox-4da8a441d103c40ecc9c1f84cb5bef49ca8c1e8f.tar.gz rockbox-4da8a441d103c40ecc9c1f84cb5bef49ca8c1e8f.zip |
tools/scramble: add support for a couple more Creative devices
This is mostly for consistency, this tool will be unused by the newer targets.
Also update the usage() display to mention -no-ciff
Change-Id: I4500f5fdce771ad3c53701a0bbaace916e88759d
Diffstat (limited to 'tools/scramble.c')
-rw-r--r-- | tools/scramble.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/tools/scramble.c b/tools/scramble.c index 7b164e0899..c29634bb6c 100644 --- a/tools/scramble.c +++ b/tools/scramble.c | |||
@@ -107,9 +107,9 @@ void usage(void) | |||
107 | printf("\t-ipod3g ipod firmware partition format (3rd Gen)\n" | 107 | printf("\t-ipod3g ipod firmware partition format (3rd Gen)\n" |
108 | "\t-ipod4g ipod firmware partition format (4th Gen, Mini, Nano, Photo/Color)\n" | 108 | "\t-ipod4g ipod firmware partition format (4th Gen, Mini, Nano, Photo/Color)\n" |
109 | "\t-ipod5g ipod firmware partition format (5th Gen - aka Video)\n" | 109 | "\t-ipod5g ipod firmware partition format (5th Gen - aka Video)\n" |
110 | "\t-creative=X Creative firmware structure format\n" | 110 | "\t-creative=X [-no-ciff] Creative firmware structure format\n" |
111 | "\t (X values: zvm, zvm60, zenvision\n" | 111 | "\t (X values: zvm, zvm60, zenvision, zenv, zen,\n" |
112 | "\t zenv, zen\n"); | 112 | "\t zenxfi, zenmozaic)\n"); |
113 | printf("\t-gigabeat Toshiba Gigabeat F/X format\n" | 113 | printf("\t-gigabeat Toshiba Gigabeat F/X format\n" |
114 | "\t-gigabeats Toshiba Gigabeat S format\n" | 114 | "\t-gigabeats Toshiba Gigabeat S format\n" |
115 | "\t-mi4v2 PortalPlayer .mi4 format (revision 010201)\n" | 115 | "\t-mi4v2 PortalPlayer .mi4 format (revision 010201)\n" |
@@ -455,6 +455,10 @@ int main (int argc, char** argv) | |||
455 | return zvm_encode(iname, oname, ZENV, creative_enable_ciff); | 455 | return zvm_encode(iname, oname, ZENV, creative_enable_ciff); |
456 | else if(!strcmp(&argv[1][10], "zen")) | 456 | else if(!strcmp(&argv[1][10], "zen")) |
457 | return zvm_encode(iname, oname, ZEN, creative_enable_ciff); | 457 | return zvm_encode(iname, oname, ZEN, creative_enable_ciff); |
458 | else if(!strcmp(&argv[1][10], "zenxfi")) | ||
459 | return zvm_encode(iname, oname, ZENXFI, creative_enable_ciff); | ||
460 | else if(!strcmp(&argv[1][10], "zenmozaic")) | ||
461 | return zvm_encode(iname, oname, ZENMOZAIC, creative_enable_ciff); | ||
458 | else | 462 | else |
459 | { | 463 | { |
460 | fprintf(stderr, "unsupported Creative device: %s\n", &argv[1][10]); | 464 | fprintf(stderr, "unsupported Creative device: %s\n", &argv[1][10]); |