Extend return codes for chinachip_patch().
commit059cb71c96d0248b7b4898722b47f289dd15ad2d
authorDominik Riebeling <Dominik.Riebeling@gmail.com>
Sat, 3 Dec 2011 09:41:44 +0000 (3 09:41 +0000)
committerDominik Riebeling <Dominik.Riebeling@gmail.com>
Sat, 3 Dec 2011 09:41:44 +0000 (3 09:41 +0000)
tree8c5e69447d299060ef920216204ff9c4bb2638e4
parent07da9ce5ea9ca26436db04a63e281842467ff7fd
Extend return codes for chinachip_patch().

Instead of passing error messages using a callback function (which becomes
awkward when used from a C++ class object) return distinct error codes from
chinachip_patch(). This also removes the kludge to support translations for
Rockbox Utility and moves the strings to translate to the installation class
where they belong.

As a side effect info messages won't be passed to Rockbox Utility anymore, but
the details of the patching progress aren't of that much interest for the user
anyway.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31115 a1c6a512-1295-4272-9138-f99709370657
rbutil/chinachippatcher/chinachip.c
rbutil/chinachippatcher/chinachip.h
rbutil/chinachippatcher/main.c
rbutil/rbutilqt/base/bootloaderinstallchinachip.cpp
rbutil/rbutilqt/base/bootloaderinstallchinachip.h