diff options
author | Dominik Riebeling <Dominik.Riebeling@gmail.com> | 2009-08-09 10:57:39 +0000 |
---|---|---|
committer | Dominik Riebeling <Dominik.Riebeling@gmail.com> | 2009-08-09 10:57:39 +0000 |
commit | 0b7bfb62700ab0c0f8764dd04e7dc3d64835781d (patch) | |
tree | 487da6cb8b2e5cbc0ef479bd70f380c95673cc13 /rbutil/rbutilqt/base/bootloaderinstallbase.cpp | |
parent | 63ba647ee0fcdcb42f1e36e4a8f82c6c40cbb8f2 (diff) | |
download | rockbox-0b7bfb62700ab0c0f8764dd04e7dc3d64835781d.tar.gz rockbox-0b7bfb62700ab0c0f8764dd04e7dc3d64835781d.zip |
Extend bootloader installation to accept alternatives for the destination filename.
Remove the hardcoded special case for the H10 bootloader installation and uninstallation. Allow multiple bootloader filenames to be present and pick the existing one on (un)installation. This is also needed for easily adding support for the Samsung YH players (to make FS#10373 actually work).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22220 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'rbutil/rbutilqt/base/bootloaderinstallbase.cpp')
-rw-r--r-- | rbutil/rbutilqt/base/bootloaderinstallbase.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/rbutil/rbutilqt/base/bootloaderinstallbase.cpp b/rbutil/rbutilqt/base/bootloaderinstallbase.cpp index 54e06d024e..5ce735a5b7 100644 --- a/rbutil/rbutilqt/base/bootloaderinstallbase.cpp +++ b/rbutil/rbutilqt/base/bootloaderinstallbase.cpp | |||
@@ -187,3 +187,19 @@ QString BootloaderInstallBase::postinstallHints(QString model) | |||
187 | return QString(""); | 187 | return QString(""); |
188 | } | 188 | } |
189 | 189 | ||
190 | |||
191 | //! @brief set list of possible bootloader files and pick the existing one. | ||
192 | //! @param sl list of possible bootloader files. | ||
193 | void BootloaderInstallBase::setBlFile(QStringList sl) | ||
194 | { | ||
195 | // figue which of the possible bootloader filenames is correct. | ||
196 | for(int a = 0; a < sl.size(); a++) { | ||
197 | if(!resolvePathCase(sl.at(a)).isEmpty()) { | ||
198 | m_blfile = sl.at(a); | ||
199 | } | ||
200 | } | ||
201 | if(m_blfile.isEmpty()) { | ||
202 | m_blfile = sl.at(0); | ||
203 | } | ||
204 | } | ||
205 | |||