Commit graph

19 commits

Author SHA1 Message Date
Thomas Jarosch
a71603b4d1 Clean up bogus 'make compiler happy' code
Less code makes the compiler even happier.

Change-Id: I24cf586ba44f432b541fd17079f93dbd52314828
2015-01-12 21:13:00 +01:00
Thomas Jarosch
8f1fbd1dc8 Remove unneeded std::string .c_str() call
cppcheck reported:
[utils/zenutils/source/update_patch/main.cpp:105]: (performance) Passing the result of c_str() to a function that takes std::string as argument no. 1 is slow and redundant.

Change-Id: Ied9de135e693af22e1fdc3aa3b67d14b7d2c21e6
2015-01-04 12:33:09 +01:00
Thomas Jarosch
29ffa832fe Remove useless assignment of 'len'
The variable 'len' is not used after this statement.
Probably a copy'n'paste leftover from the similar
looking block above.

cppcheck reported:
[rockbox/utils/zenutils/source/shared/cenc.cpp:212]: (style) Same expression on both sides of '-'.

Change-Id: Ia8357187ed39d3fab10d97df75a1146c4f733790
2014-12-20 15:52:35 +01:00
Amaury Pouly
2f1da04cc3 zenutils/update_extract: make sure the archive is valid
The update_extract tool works by finding the compressed size and
the compressed data in the updater. This is problematic since
without the uncompressed size, inflate can produce extra bytes
at end. This is not a problem for our tools but the device will
plain reject it if sent by MTP/sendfirm for example.
Workaround this issue by reading and rewriting the archive
after decompression so that only the meaningfull data is written.

Change-Id: I117f434b92a56d93d269af49c3e426cd8cc0c7e4
2012-06-27 14:56:20 +02:00
Rafaël Carré
9274cf3b6c zenutils: remove unused empty file
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31574 a1c6a512-1295-4272-9138-f99709370657
2012-01-04 07:03:28 +00:00
Andree Buschmann
01c0523e3f Revert nonsense change.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29195 a1c6a512-1295-4272-9138-f99709370657
2011-02-02 22:02:56 +00:00
Andree Buschmann
adf7224538 Fix red. Replace remaining MEM's mit MEMORYSIZE.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29190 a1c6a512-1295-4272-9138-f99709370657
2011-02-02 17:55:04 +00:00
Maurus Cuelenaere
6c74a7db80 Fix ZenUtils compilation
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21242 a1c6a512-1295-4272-9138-f99709370657
2009-06-10 15:14:32 +00:00
Maurus Cuelenaere
42f2dd8961 ZenUtils: fix offset detection
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19825 a1c6a512-1295-4272-9138-f99709370657
2009-01-23 17:44:34 +00:00
Maurus Cuelenaere
0a61b71f73 Fix segmentation fault when no key was found.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19164 a1c6a512-1295-4272-9138-f99709370657
2008-11-21 12:37:00 +00:00
Maurus Cuelenaere
e3f1a3f33e ZenUtils:
* Add support for ZEN Mozaic
 * Add checking for valid FRESC when decrypting


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18511 a1c6a512-1295-4272-9138-f99709370657
2008-09-14 11:20:29 +00:00
Maurus Cuelenaere
bea2ab2398 ZenUtils:
* add FRESC encryption
 * clean up code a bit


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18345 a1c6a512-1295-4272-9138-f99709370657
2008-08-26 13:21:52 +00:00
Maurus Cuelenaere
ced10d4db1 ZenUtils:
* Apply FS#9311 by Jelle Geerts: fix compiling on MingW
  * Make zen::find_firmware_offset() detect the offset better


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18340 a1c6a512-1295-4272-9138-f99709370657
2008-08-24 21:15:29 +00:00
Maurus Cuelenaere
ba284447d5 Fix little mistake; thanks to Dave Hooper
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18272 a1c6a512-1295-4272-9138-f99709370657
2008-08-13 21:00:29 +00:00
Maurus Cuelenaere
b2c19a5a26 Search-and-replace was a bit too excessive..
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18265 a1c6a512-1295-4272-9138-f99709370657
2008-08-12 23:53:08 +00:00
Maurus Cuelenaere
bc628fe5ce Zenutils:
* Make update_extract work again
 * Add other players to zen_crypt
 * Change stricmp() calls to strcasecmp() in zen_crypt


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18264 a1c6a512-1295-4272-9138-f99709370657
2008-08-12 23:51:04 +00:00
Maurus Cuelenaere
6acee7d333 Remove binaries
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18013 a1c6a512-1295-4272-9138-f99709370657
2008-07-11 18:56:33 +00:00
Nicolas Pennequin
ca5bb76d2b Delete the svn:executable property and set svn:eol-style to native for all those text files.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18012 a1c6a512-1295-4272-9138-f99709370657
2008-07-11 16:51:25 +00:00
Maurus Cuelenaere
14c7f45cda Add zook's ZenUtils to SVN
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18010 a1c6a512-1295-4272-9138-f99709370657
2008-07-11 15:50:46 +00:00