diff options
| author | Dominik Riebeling <Dominik.Riebeling@gmail.com> | 2008-03-20 20:29:17 +0000 |
|---|---|---|
| committer | Dominik Riebeling <Dominik.Riebeling@gmail.com> | 2008-03-20 20:29:17 +0000 |
| commit | 7b2982ac622381351e4c90f3afff3aa2be1a521e (patch) | |
| tree | 4e85d929ccf9bab719be9b83b445522d58a9ff12 | |
| parent | a6108b90978e1f8c33963043149061640423c4a3 (diff) | |
| download | rockbox-7b2982ac622381351e4c90f3afff3aa2be1a521e.zip rockbox-7b2982ac622381351e4c90f3afff3aa2be1a521e.tar.gz rockbox-7b2982ac622381351e4c90f3afff3aa2be1a521e.tar.bz2 rockbox-7b2982ac622381351e4c90f3afff3aa2be1a521e.tar.xz | |
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
| -rw-r--r-- | rbutil/rbutilqt/autodetection.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/rbutil/rbutilqt/autodetection.cpp b/rbutil/rbutilqt/autodetection.cpp index 97963d4..d9b7751 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; } |