mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-09 21:22:39 -05:00
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
This commit is contained in:
parent
63ba647ee0
commit
0b7bfb6270
4 changed files with 32 additions and 27 deletions
|
|
@ -187,3 +187,19 @@ QString BootloaderInstallBase::postinstallHints(QString model)
|
|||
return QString("");
|
||||
}
|
||||
|
||||
|
||||
//! @brief set list of possible bootloader files and pick the existing one.
|
||||
//! @param sl list of possible bootloader files.
|
||||
void BootloaderInstallBase::setBlFile(QStringList sl)
|
||||
{
|
||||
// figue which of the possible bootloader filenames is correct.
|
||||
for(int a = 0; a < sl.size(); a++) {
|
||||
if(!resolvePathCase(sl.at(a)).isEmpty()) {
|
||||
m_blfile = sl.at(a);
|
||||
}
|
||||
}
|
||||
if(m_blfile.isEmpty()) {
|
||||
m_blfile = sl.at(0);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue