From 06786de3dc57bb855478d070f8f27d8c70beb427 Mon Sep 17 00:00:00 2001 From: bluebrother Date: Thu, 20 Mar 2008 20:29:17 +0000 Subject: [PATCH] On windows check for iPod_Control folder to allow resolving the drive letter for Ipods. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16724 a1c6a512-1295-4272-9138-f99709370657 --- rbutil/rbutilqt/autodetection.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/rbutil/rbutilqt/autodetection.cpp b/rbutil/rbutilqt/autodetection.cpp index 97963d419..d9b77514a 100644 --- a/rbutil/rbutilqt/autodetection.cpp +++ b/rbutil/rbutilqt/autodetection.cpp @@ -135,6 +135,15 @@ bool Autodetection::detect() m_mountpoint = mountpoints.at(i); return true; } +#if defined(Q_OS_WIN32) + // on windows, try to detect the drive letter of an Ipod + if(rootfolders.contains("iPod_Control"), Qt::CaseInsensitive) + { + // iPod_Control folder -> Ipod found + // detecting of the Ipod type is done below using ipodpatcher + m_mountpoint = mountpoints.at(i); + } +#endif } } @@ -146,7 +155,9 @@ bool Autodetection::detect() if(n == 1) { qDebug() << "Ipod found:" << ipod.modelstr << "at" << ipod.diskname; m_device = ipod.targetname; +#if !defined(Q_OS_WIN32) m_mountpoint = resolveMountPoint(ipod.diskname); +#endif return true; } -- 2.11.4.GIT