Improve notification about unsupported players.
- Display the name of a detected unsupported player when running autodetection from the configuration window. - Extend the list of known-unsupported players. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22334 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
9cdfbfede4
commit
76100783af
3 changed files with 81 additions and 11 deletions
|
@ -418,8 +418,9 @@ bool Autodetection::detectUsb()
|
||||||
qDebug() << "[USB] detected problem with player" << m_errdev;
|
qDebug() << "[USB] detected problem with player" << m_errdev;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
if(usbincompat.contains(attached.at(i))) {
|
QString idstring = QString("%1").arg(attached.at(i), 8, 16, QChar('0'));
|
||||||
m_incompat = usbincompat.value(attached.at(i));
|
if(!RbSettings::platformValue(idstring, RbSettings::CurName).toString().isEmpty()) {
|
||||||
|
m_incompat = idstring;
|
||||||
qDebug() << "[USB] detected incompatible player" << m_incompat;
|
qDebug() << "[USB] detected incompatible player" << m_incompat;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
|
@ -588,14 +588,12 @@ void Config::autodetect()
|
||||||
}
|
}
|
||||||
if(!detector.incompatdev().isEmpty()) {
|
if(!detector.incompatdev().isEmpty()) {
|
||||||
QString text;
|
QString text;
|
||||||
// we need to set the platform here to get the brand from the
|
text = tr("Detected an unsupported player:\n%1\n"
|
||||||
// settings object
|
"Sorry, Rockbox doesn't run on your player.")
|
||||||
RbSettings::setValue(RbSettings::Platform, detector.incompatdev());
|
.arg(RbSettings::platformValue(detector.incompatdev(),
|
||||||
text = tr("Detected an unsupported %1 player variant. Sorry, "
|
RbSettings::CurName).toString());
|
||||||
"Rockbox doesn't run on your player.")
|
|
||||||
.arg(RbSettings::value(RbSettings::CurBrand).toString());
|
|
||||||
|
|
||||||
QMessageBox::critical(this, tr("Fatal error: incompatible player found"),
|
QMessageBox::critical(this, tr("Fatal: player incompatible"),
|
||||||
text, QMessageBox::Ok);
|
text, QMessageBox::Ok);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
@ -251,7 +251,6 @@ bootloadermethod=ipod
|
||||||
bootloadername=/ipod/bootloader-ipodnano.ipod
|
bootloadername=/ipod/bootloader-ipodnano.ipod
|
||||||
manualname=
|
manualname=
|
||||||
brand=Apple
|
brand=Apple
|
||||||
usbincompat=0x05ac1260, 0x05ac1262, 0x05ac1263
|
|
||||||
configure_modelname=ipodnano
|
configure_modelname=ipodnano
|
||||||
targetid=14
|
targetid=14
|
||||||
encoder=rbspeex
|
encoder=rbspeex
|
||||||
|
@ -286,7 +285,6 @@ bootloadername=/ipod/bootloader-ipodvideo.ipod
|
||||||
manualname=
|
manualname=
|
||||||
brand=Apple
|
brand=Apple
|
||||||
configure_modelname=ipodvideo
|
configure_modelname=ipodvideo
|
||||||
usbincompat=0x05ac1261
|
|
||||||
targetid=15
|
targetid=15
|
||||||
encoder=rbspeex
|
encoder=rbspeex
|
||||||
|
|
||||||
|
@ -522,6 +520,79 @@ configure_modelname=yh925
|
||||||
targetid=59
|
targetid=59
|
||||||
encoder=rbspeex
|
encoder=rbspeex
|
||||||
|
|
||||||
|
[05ac1260]
|
||||||
|
name=Apple Ipod Nano (Second Generation)
|
||||||
|
|
||||||
|
[05ac1240]
|
||||||
|
name=Apple Ipod Nano (Second Generation, DFU Mode)
|
||||||
|
|
||||||
|
[05ac1262]
|
||||||
|
name=Apple Ipod Nano (Third Generation)
|
||||||
|
|
||||||
|
[05ac1263]
|
||||||
|
name=Apple Ipod Nano (Fourth Generation)
|
||||||
|
|
||||||
|
[05ac1255]
|
||||||
|
name=Apple Ipod Nano (Fourth Generation, DFU Mode)
|
||||||
|
|
||||||
|
[05ac1261]
|
||||||
|
name=Apple Ipod Classic (6th Generation)
|
||||||
|
|
||||||
|
[041e4133]
|
||||||
|
name=Creative Zen series (Removable Disk Mode)
|
||||||
|
|
||||||
|
[041e4151]
|
||||||
|
name=Creative Zen Vision:M (MTP)
|
||||||
|
|
||||||
|
[041e4150]
|
||||||
|
name=Creative Zen V (MTP)
|
||||||
|
|
||||||
|
[041e4152]
|
||||||
|
name=Creative Zen V Plus (MTP)
|
||||||
|
|
||||||
|
[066f3600]
|
||||||
|
name=Creative Zen V (HW recovery mode)
|
||||||
|
|
||||||
|
[041e4157]
|
||||||
|
name=Creative ZEN (MTP)
|
||||||
|
|
||||||
|
[041e4128]
|
||||||
|
name=Creative NOMAD Jukebox Zen Xtra (MTP)
|
||||||
|
|
||||||
|
[041e4111]
|
||||||
|
name=Dell Digital Jukebox (First Generation, MTP)
|
||||||
|
|
||||||
|
[041e412f]
|
||||||
|
name=Dell Digital Jukebox (Second Generation, MTP)
|
||||||
|
|
||||||
|
[09300014]
|
||||||
|
name=Toshiba Gigabeat V Series, MTP
|
||||||
|
|
||||||
|
[09300019]
|
||||||
|
name=Toshiba Gigabeat T Series, MTP (No UMS mode)
|
||||||
|
|
||||||
|
[07817480]
|
||||||
|
name=Sansa Connect (Normal Connection)
|
||||||
|
|
||||||
|
[07817481]
|
||||||
|
name=Sansa Connect (Recovery Mode)
|
||||||
|
|
||||||
|
[07817400]
|
||||||
|
name=Sansa m200-tcc (UMS/MSC)
|
||||||
|
|
||||||
|
[07817401]
|
||||||
|
name=Sansa m200-tcc (MTP)
|
||||||
|
|
||||||
|
[07817430]
|
||||||
|
name=Sansa m200v4 (MTP)
|
||||||
|
|
||||||
|
[07817431]
|
||||||
|
name=Sansa m200v4 (MSC)
|
||||||
|
|
||||||
|
[078174b1]
|
||||||
|
name=Sansa View
|
||||||
|
|
||||||
|
|
||||||
[languages]
|
[languages]
|
||||||
lang1=afrikaans
|
lang1=afrikaans
|
||||||
lang2=bulgarian
|
lang2=bulgarian
|
||||||
|
|
Loading…
Reference in a new issue