mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-09 05:05:20 -05:00
Move retrieval of revision and release numbers to RockboxInfo class.
This allows reusing retrieval for upcoming distinguishing between release and current voice files. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26636 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
be8da842b8
commit
b2998ef6c7
3 changed files with 15 additions and 12 deletions
|
|
@ -41,6 +41,15 @@ RockboxInfo::RockboxInfo(QString mountpoint)
|
|||
if(line.contains("Version:"))
|
||||
{
|
||||
m_version = line.remove("Version:").trimmed();
|
||||
if(m_version.startsWith("r")) {
|
||||
m_revision = m_version;
|
||||
m_revision.remove("r").replace(QRegExp("-.+$"), "");
|
||||
m_release = "";
|
||||
}
|
||||
else {
|
||||
m_release = m_version;
|
||||
m_revision = "";
|
||||
}
|
||||
}
|
||||
else if(line.contains("Target: "))
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue