mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-11 14:12:26 -05:00
Add special handling for ipodvideo64mb when detecting the player via rockbox-info.txt.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22831 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
d0bb6d0065
commit
b9a17dd0ce
3 changed files with 13 additions and 1 deletions
|
|
@ -97,6 +97,12 @@ bool Autodetection::detect()
|
|||
if(m_device.isEmpty())
|
||||
{
|
||||
m_device = info.target();
|
||||
// special case for video64mb. This is a workaround, and
|
||||
// should get replaced when autodetection is reworked.
|
||||
if(m_device == "ipodvideo" || info.ram() == 64)
|
||||
{
|
||||
m_device = "ipodvideo64mb";
|
||||
}
|
||||
}
|
||||
m_mountpoint = mounts.at(i);
|
||||
qDebug() << "[Autodetect] rockbox-info.txt detected:"
|
||||
|
|
|
|||
|
|
@ -233,7 +233,11 @@ RockboxInfo::RockboxInfo(QString mountpoint)
|
|||
else if(line.contains("Target id:"))
|
||||
{
|
||||
m_targetid = line.remove("Target id:").trimmed();
|
||||
}
|
||||
}
|
||||
else if(line.contains("Memory:"))
|
||||
{
|
||||
m_ram = line.remove("Memory:").trimmed().toInt();
|
||||
}
|
||||
}
|
||||
|
||||
file.close();
|
||||
|
|
|
|||
|
|
@ -41,12 +41,14 @@ public:
|
|||
QString features(){return m_features;}
|
||||
QString targetID() {return m_targetid;}
|
||||
QString target() {return m_target;}
|
||||
int ram() { return m_ram; }
|
||||
bool success() { return m_success; }
|
||||
private:
|
||||
QString m_version;
|
||||
QString m_features;
|
||||
QString m_targetid;
|
||||
QString m_target;
|
||||
int m_ram;
|
||||
bool m_success;
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue