1
0
Fork 0
forked from len0rd/rockbox

Device detection based on USB PIDs. This is currently linux only and requires libusb. There is also no way to figure the mount point from the USB PID so the old methods are tried for this.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14698 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Dominik Riebeling 2007-09-14 20:52:38 +00:00
parent 3d41c1c466
commit fc25266440
6 changed files with 119 additions and 6 deletions

View file

@ -565,6 +565,20 @@ void Config::autodetect()
}
}
if(!detector.errdev().isEmpty()) {
QString text;
if(detector.errdev() == "sansae200")
text = tr("Sansa e200 in MTP mode found!\n"
"You need to change your player to MSC mode for installation. ");
if(detector.errdev() == "h10")
text = tr("H10 20GB in MTP mode found!\n"
"You need to change your player to UMS mode for installation. ");
text += tr("Unless you changed this installation will fail!");
QMessageBox::critical(this, tr("Fatal error"), text, QMessageBox::Ok);
return;
}
if(detector.getMountPoint() != "" )
{
ui.mountPoint->setText(detector.getMountPoint());