summaryrefslogtreecommitdiffstats
path: root/rbutil/rbutilqt/base/autodetection.cpp
diff options
context:
space:
mode:
authorDominik Riebeling <Dominik.Riebeling@gmail.com>2009-09-25 15:26:59 +0000
committerDominik Riebeling <Dominik.Riebeling@gmail.com>2009-09-25 15:26:59 +0000
commitb9a17dd0ceb1edc3e8d08522f82f9dfeabe53a53 (patch)
treeb1047dbaea6e264d06f95e9227923255a29af1d2 /rbutil/rbutilqt/base/autodetection.cpp
parentd0bb6d006530403e4027468e9d568a42954cd6f5 (diff)
downloadrockbox-b9a17dd0ceb1edc3e8d08522f82f9dfeabe53a53.tar.gz
rockbox-b9a17dd0ceb1edc3e8d08522f82f9dfeabe53a53.tar.bz2
rockbox-b9a17dd0ceb1edc3e8d08522f82f9dfeabe53a53.zip
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
Diffstat (limited to 'rbutil/rbutilqt/base/autodetection.cpp')
-rw-r--r--rbutil/rbutilqt/base/autodetection.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/rbutil/rbutilqt/base/autodetection.cpp b/rbutil/rbutilqt/base/autodetection.cpp
index b038aa683d..0526d8d9c9 100644
--- a/rbutil/rbutilqt/base/autodetection.cpp
+++ b/rbutil/rbutilqt/base/autodetection.cpp
@@ -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:"