1
0
Fork 0
forked from len0rd/rockbox
1. Make Themesite integration work again
2. Fix FS#10055 (Theme sizes are 0) and FS#10061 (Incorrect Target missmatch detected)
3. Rename platform and voicename in rbutil.ini to reflect better what they are. (modelnames from either configure or the buildserver)
4. Fix a few places where they were used incorrectly

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20558 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Dominik Wenger 2009-03-27 18:09:01 +00:00
parent 463c96eb77
commit 75a5b9321b
7 changed files with 83 additions and 83 deletions

View file

@ -402,11 +402,11 @@ QString Detect::check(RbSettings* settings, bool permission)
// Check TargetId // Check TargetId
QString installed = installedTarget(settings->mountpoint()); QString installed = installedTarget(settings->mountpoint());
if(!installed.isEmpty() && installed != settings->curPlatform()) if(!installed.isEmpty() && installed != settings->curConfigure_Modelname())
{ {
text += QObject::tr("<li>Target mismatch detected.\n" text += QObject::tr("<li>Target mismatch detected.\n"
"Installed target: %1, selected target: %2.</li>") "Installed target: %1, selected target: %2.</li>")
.arg(settings->name(installed), settings->curName()); .arg(installed, settings->curName());
} }
if(!text.isEmpty()) if(!text.isEmpty())

View file

@ -101,7 +101,7 @@ void Install::accept()
} }
QString myversion; QString myversion;
QString buildname = settings->curPlatformName(); QString buildname = settings->curBuildserver_Modelname();
if(ui.radioStable->isChecked()) { if(ui.radioStable->isChecked()) {
file = QString("%1/%2/rockbox-%3-%4.zip") file = QString("%1/%2/rockbox-%3-%4.zip")
.arg(settings->releaseUrl(), version.value("rel_rev"), .arg(settings->releaseUrl(), version.value("rel_rev"),

View file

@ -59,8 +59,8 @@ void ThemesInstallWindow::downloadInfo()
themesInfo.close(); themesInfo.close();
QUrl url; QUrl url;
url = QUrl(settings->themeUrl() + "/rbutilqt.php?res=" url = QUrl(settings->themeUrl() + "/rbutilqt.php?target="
+ settings->curResolution()); + settings->curConfigure_Modelname());
qDebug() << "downloadInfo()" << url; qDebug() << "downloadInfo()" << url;
qDebug() << url.queryItems(); qDebug() << url.queryItems();
if(settings->cacheOffline()) if(settings->cacheOffline())
@ -159,10 +159,10 @@ void ThemesInstallWindow::updateDetails(int row)
ui.themePreview->clear(); ui.themePreview->clear();
ui.themePreview->setText(tr("fetching preview ...")); ui.themePreview->setText(tr("fetching preview ..."));
int size = 0; double size = 0;
iniDetails.beginGroup(ui.listThemes->item(row)->data(Qt::UserRole).toString()); iniDetails.beginGroup(ui.listThemes->item(row)->data(Qt::UserRole).toString());
size += iniDetails.value("size").toInt(); size += iniDetails.value("size").toDouble();
qDebug() << ui.listThemes->item(row)->data(Qt::UserRole).toString() << size; qDebug() << ui.listThemes->item(row)->data(Qt::UserRole).toString() << size;
iniDetails.endGroup(); iniDetails.endGroup();
ui.labelSize->setText(tr("Download size %L1 kiB").arg(size)); ui.labelSize->setText(tr("Download size %L1 kiB").arg(size));

View file

@ -227,9 +227,9 @@ QString RbSettings::curPlatform()
return userSettings->value("platform").toString(); return userSettings->value("platform").toString();
} }
QString RbSettings::curPlatformName() QString RbSettings::curBuildserver_Modelname()
{ {
return deviceSettingCurGet("platform").toString(); return deviceSettingCurGet("buidserver_modelname").toString();
} }
QString RbSettings::curManual() QString RbSettings::curManual()
@ -253,9 +253,9 @@ QString RbSettings::curBootloaderFile()
return deviceSettingCurGet("bootloaderfile").toString(); return deviceSettingCurGet("bootloaderfile").toString();
} }
QString RbSettings::curVoiceName() QString RbSettings::curConfigure_Modelname()
{ {
return deviceSettingCurGet("voicename").toString(); return deviceSettingCurGet("configure_modelname").toString();
} }
QString RbSettings::curLang() QString RbSettings::curLang()

View file

@ -92,12 +92,12 @@ class RbSettings : public QObject
QString curBrand(); QString curBrand();
QString curName(); QString curName();
QString curPlatform(); QString curPlatform(); // rbutil internal target name.
QString curPlatformName(); QString curBuildserver_Modelname(); // modelnames used by the buildserver
QString curManual(); QString curManual();
QString curBootloaderMethod(); QString curBootloaderMethod();
QString curBootloaderName(); QString curBootloaderName();
QString curVoiceName(); QString curConfigure_Modelname(); // modelname from configure (used for themes, voice, rockbox-info comparing.
QString curLang(); QString curLang();
QString curEncoder(); QString curEncoder();
QString curTTS(); QString curTTS();

View file

@ -51,103 +51,103 @@ platform60=mrobe100
[player] [player]
name="Jukebox Player 6000 / Jukebox Studio 5 / 10 / 20" name="Jukebox Player 6000 / Jukebox Studio 5 / 10 / 20"
platform=player buidserver_modelname=player
bootloadermethod=none bootloadermethod=none
bootloadername= bootloadername=
resolution=11x2x1 resolution=11x2x1
manualname= manualname=
brand=Archos brand=Archos
voicename=player configure_modelname=player
targetid=1 targetid=1
encoder=lame encoder=lame
[recorder] [recorder]
name="Jukebox Recorder 6 / 10 / 15 / 20" name="Jukebox Recorder 6 / 10 / 15 / 20"
platform=recorder buidserver_modelname=recorder
bootloadermethod=none bootloadermethod=none
bootloadername= bootloadername=
resolution=112x64x1 resolution=112x64x1
manualname= manualname=
brand=Archos brand=Archos
voicename=recorder configure_modelname=recorder
targetid=2 targetid=2
encoder=lame encoder=lame
[recorder8mb] [recorder8mb]
name="Jukebox Recorder 6 / 10 / 15 / 20 (with 8MiB memory)" name="Jukebox Recorder 6 / 10 / 15 / 20 (with 8MiB memory)"
platform=recorder8mb buidserver_modelname=recorder8mb
bootloadermethod=none bootloadermethod=none
bootloadername= bootloadername=
resolution=112x64x1 resolution=112x64x1
manualname=rockbox-recorder manualname=rockbox-recorder
brand=Archos brand=Archos
voicename=recorder configure_modelname=recorder
targetid=2 targetid=2
encoder=lame encoder=lame
[recorderv2] [recorderv2]
name="Jukebox Recorder v2 (20GB)" name="Jukebox Recorder v2 (20GB)"
platform=recorderv2 buidserver_modelname=recorderv2
bootloadermethod=none bootloadermethod=none
bootloadername= bootloadername=
resolution=112x64x1 resolution=112x64x1
manualname= manualname=
brand=Archos brand=Archos
voicename=recorderv2 configure_modelname=recorderv2
targetid=4 targetid=4
encoder=lame encoder=lame
[fmrecorder] [fmrecorder]
name="Jukebox Recorder FM" name="Jukebox Recorder FM"
platform=fmrecorder buidserver_modelname=fmrecorder
bootloadermethod=none bootloadermethod=none
bootloadername= bootloadername=
resolution=112x64x1 resolution=112x64x1
manualname= manualname=
brand=Archos brand=Archos
voicename=fmrecorder configure_modelname=fmrecorder
targetid=3 targetid=3
encoder=lame encoder=lame
[fmrecorder8mb] [fmrecorder8mb]
name="Jukebox Recorder FM (with 8MiB memory)" name="Jukebox Recorder FM (with 8MiB memory)"
platform=fmrecorder8mb buidserver_modelname=fmrecorder8mb
bootloadermethod=none bootloadermethod=none
bootloadername= bootloadername=
resolution=112x64x1 resolution=112x64x1
manualname=rockbox-fmrecorder manualname=rockbox-fmrecorder
brand=Archos brand=Archos
voicename=fmrecorder configure_modelname=fmrecorder
targetid=3 targetid=3
encoder=lame encoder=lame
[ondiosp] [ondiosp]
name="Ondio SP" name="Ondio SP"
platform=ondiosp buidserver_modelname=ondiosp
bootloadermethod=none bootloadermethod=none
bootloadername= bootloadername=
resolution=112x64x1 resolution=112x64x1
manualname= manualname=
brand=Archos brand=Archos
voicename=ondiosp configure_modelname=ondiosp
targetid=7 targetid=7
encoder=lame encoder=lame
[ondiofm] [ondiofm]
name="Ondio FM" name="Ondio FM"
platform=ondiofm buidserver_modelname=ondiofm
bootloadermethod=none bootloadermethod=none
bootloadername= bootloadername=
resolution=112x64x1 resolution=112x64x1
manualname= manualname=
brand=Archos brand=Archos
voicename=ondiofm configure_modelname=ondiofm
targetid=8 targetid=8
encoder=lame encoder=lame
[h100] [h100]
name="iHP100 / iHP110" name="iHP100 / iHP110"
platform=h100 buidserver_modelname=h100
bootloadermethod=hex bootloadermethod=hex
bootloadername=/iriver/bootloader-h100.bin bootloadername=/iriver/bootloader-h100.bin
bootloaderfile=/ihp_100.hex bootloaderfile=/ihp_100.hex
@ -155,13 +155,13 @@ resolution=160x128x2
manualname=rockbox-h100 manualname=rockbox-h100
brand=Iriver brand=Iriver
usbid=0x10063001 usbid=0x10063001
voicename=h100 configure_modelname=h100
targetid=11 targetid=11
encoder=rbspeex encoder=rbspeex
[h120] [h120]
name="iHP120 / iHP140 / H120 / H140" name="iHP120 / iHP140 / H120 / H140"
platform=h120 buidserver_modelname=h120
bootloadermethod=hex bootloadermethod=hex
bootloadername=/iriver/bootloader-h120.bin bootloadername=/iriver/bootloader-h120.bin
bootloaderfile=/ihp_120.hex bootloaderfile=/ihp_120.hex
@ -169,13 +169,13 @@ resolution=160x128x2
manualname=rockbox-h100 manualname=rockbox-h100
brand=Iriver brand=Iriver
usbid=0x10063002 usbid=0x10063002
voicename=h120 configure_modelname=h120
targetid=9 targetid=9
encoder=rbspeex encoder=rbspeex
[h300] [h300]
name="H320 / H340" name="H320 / H340"
platform=h300 buidserver_modelname=h300
bootloadermethod=hex bootloadermethod=hex
bootloadername=/iriver/bootloader-h300.bin bootloadername=/iriver/bootloader-h300.bin
bootloaderfile=/H300.hex bootloaderfile=/H300.hex
@ -183,13 +183,13 @@ resolution=220x176x16
manualname=rockbox-h300 manualname=rockbox-h300
brand=Iriver brand=Iriver
usbid=0x10063003 usbid=0x10063003
voicename=h300 configure_modelname=h300
targetid=10 targetid=10
encoder=rbspeex encoder=rbspeex
[h10_5gbums] [h10_5gbums]
name="H10 (5 / 6GB) UMS" name="H10 (5 / 6GB) UMS"
platform=h10_5gb buidserver_modelname=h10_5gb
bootloadermethod=mi4 bootloadermethod=mi4
bootloadername=/iriver/H10.mi4 bootloadername=/iriver/H10.mi4
bootloaderfile=/System/H10.mi4 bootloaderfile=/System/H10.mi4
@ -197,13 +197,13 @@ resolution=128x128x16
manualname= manualname=
brand=Iriver brand=Iriver
usbid=0x41022002 usbid=0x41022002
voicename=h10_5gb configure_modelname=h10_5gb
targetid=24 targetid=24
encoder=rbspeex encoder=rbspeex
[h10_5gbmtp] [h10_5gbmtp]
name="H10 (5 / 6GB) MTP" name="H10 (5 / 6GB) MTP"
platform=h10_5gb buidserver_modelname=h10_5gb
bootloadermethod=mi4 bootloadermethod=mi4
bootloadername=/iriver/H10_5GB-MTP/H10.mi4 bootloadername=/iriver/H10_5GB-MTP/H10.mi4
bootloaderfile=/System/H10.mi4 bootloaderfile=/System/H10.mi4
@ -211,13 +211,13 @@ resolution=128x128x16
manualname= manualname=
brand=Iriver brand=Iriver
usbid=0x41022105 usbid=0x41022105
voicename=h10_5gb configure_modelname=h10_5gb
targetid=24 targetid=24
encoder=rbspeex encoder=rbspeex
[h10] [h10]
name="H10 (20GB)" name="H10 (20GB)"
platform=h10 buidserver_modelname=h10
bootloadermethod=mi4 bootloadermethod=mi4
bootloadername=/iriver/H10_20GC.mi4 bootloadername=/iriver/H10_20GC.mi4
bootloaderfile=/System/H10_20GC.mi4 bootloaderfile=/System/H10_20GC.mi4
@ -226,124 +226,124 @@ manualname=
brand=Iriver brand=Iriver
usbid=0x0b7000ba usbid=0x0b7000ba
usberror=0x41022101 usberror=0x41022101
voicename=h10 configure_modelname=h10
targetid=22 targetid=22
encoder=rbspeex encoder=rbspeex
[ipod1g2g] [ipod1g2g]
name="Ipod (1st / 2nd gen)" name="Ipod (1st / 2nd gen)"
platform=ipod1g2g buidserver_modelname=ipod1g2g
bootloadermethod=ipod bootloadermethod=ipod
bootloadername=/ipod/bootloader-ipod1g2g.ipod bootloadername=/ipod/bootloader-ipod1g2g.ipod
resolution=160x128x2 resolution=160x128x2
manualname= manualname=
brand=Apple brand=Apple
voicename=ipod1g2g configure_modelname=ipod1g2g
targetid=29 targetid=29
encoder=rbspeex encoder=rbspeex
[ipodcolor] [ipodcolor]
name="Ipod Color / Photo / U2 (4th gen)" name="Ipod Color / Photo / U2 (4th gen)"
platform=ipodcolor buidserver_modelname=ipodcolor
bootloadermethod=ipod bootloadermethod=ipod
bootloadername=/ipod/bootloader-ipodcolor.ipod bootloadername=/ipod/bootloader-ipodcolor.ipod
resolution=220x176x16 resolution=220x176x16
manualname= manualname=
brand=Apple brand=Apple
voicename=ipodcolor configure_modelname=ipodcolor
targetid=13 targetid=13
encoder=rbspeex encoder=rbspeex
[ipodnano] [ipodnano]
name="Ipod Nano (1st gen)" name="Ipod Nano (1st gen)"
platform=ipodnano buidserver_modelname=ipodnano
bootloadermethod=ipod bootloadermethod=ipod
bootloadername=/ipod/bootloader-ipodnano.ipod bootloadername=/ipod/bootloader-ipodnano.ipod
resolution=176x132x16 resolution=176x132x16
manualname= manualname=
brand=Apple brand=Apple
usbincompat=0x05ac1260 usbincompat=0x05ac1260
voicename=ipodnano configure_modelname=ipodnano
targetid=14 targetid=14
encoder=rbspeex encoder=rbspeex
[ipod4gray] [ipod4gray]
name="Ipod (4th gen, greyscale)" name="Ipod (4th gen, greyscale)"
platform=ipod4gray buidserver_modelname=ipod4gray
bootloadermethod=ipod bootloadermethod=ipod
bootloadername=/ipod/bootloader-ipod4g.ipod bootloadername=/ipod/bootloader-ipod4g.ipod
resolution=160x128x2 resolution=160x128x2
manualname= manualname=
brand=Apple brand=Apple
voicename=ipod4gray configure_modelname=ipod4g
targetid=17 targetid=17
encoder=rbspeex encoder=rbspeex
[ipodvideo] [ipodvideo]
name="Ipod Video (5th gen) 30GB" name="Ipod Video (5th gen) 30GB"
platform=ipodvideo buidserver_modelname=ipodvideo
bootloadermethod=ipod bootloadermethod=ipod
bootloadername=/ipod/bootloader-ipodvideo.ipod bootloadername=/ipod/bootloader-ipodvideo.ipod
resolution=320x240x16 resolution=320x240x16
manualname= manualname=
brand=Apple brand=Apple
voicename=ipodvideo configure_modelname=ipodvideo
targetid=15 targetid=15
encoder=rbspeex encoder=rbspeex
[ipodvideo64mb] [ipodvideo64mb]
name="Ipod Video (5th gen) 60/80GB" name="Ipod Video (5th gen) 60/80GB"
platform=ipodvideo64mb buidserver_modelname=ipodvideo64mb
bootloadermethod=ipod bootloadermethod=ipod
bootloadername=/ipod/bootloader-ipodvideo.ipod bootloadername=/ipod/bootloader-ipodvideo.ipod
resolution=320x240x16 resolution=320x240x16
manualname= manualname=
brand=Apple brand=Apple
voicename=ipodvideo configure_modelname=ipodvideo
usbincompat=0x05ac1261 usbincompat=0x05ac1261
targetid=15 targetid=15
encoder=rbspeex encoder=rbspeex
[ipod3g] [ipod3g]
name="Ipod (3rd gen)" name="Ipod (3rd gen)"
platform=ipod3g buidserver_modelname=ipod3g
bootloadermethod=ipod bootloadermethod=ipod
bootloadername=/ipod/bootloader-ipod3g.ipod bootloadername=/ipod/bootloader-ipod3g.ipod
resolution=160x128x2 resolution=160x128x2
manualname= manualname=
brand=Apple brand=Apple
usbid=0x05ac1201 usbid=0x05ac1201
voicename=ipod3g configure_modelname=ipod3g
targetid=16 targetid=16
encoder=rbspeex encoder=rbspeex
[ipodmini1g] [ipodmini1g]
name="Ipod Mini (1st gen)" name="Ipod Mini (1st gen)"
platform=ipodmini1g buidserver_modelname=ipodmini1g
bootloadermethod=ipod bootloadermethod=ipod
bootloadername=/ipod/bootloader-ipodmini.ipod bootloadername=/ipod/bootloader-ipodmini.ipod
resolution=138x110x2 resolution=138x110x2
manualname=rockbox-ipodmini2g manualname=rockbox-ipodmini2g
brand=Apple brand=Apple
voicename=ipodmini1g configure_modelname=ipodmini
targetid=18 targetid=18
encoder=rbspeex encoder=rbspeex
[ipodmini2g] [ipodmini2g]
name="Ipod Mini (2nd gen)" name="Ipod Mini (2nd gen)"
platform=ipodmini2g buidserver_modelname=ipodmini2g
bootloadermethod=ipod bootloadermethod=ipod
bootloadername=/ipod/bootloader-ipodmini2g.ipod bootloadername=/ipod/bootloader-ipodmini2g.ipod
resolution=138x110x2 resolution=138x110x2
manualname=rockbox-ipodmini2g manualname=rockbox-ipodmini2g
brand=Apple brand=Apple
voicename=ipodmini2g configure_modelname=ipodmini2g
targetid=21 targetid=21
encoder=rbspeex encoder=rbspeex
[iaudiox5] [iaudiox5]
name="iAudio X5 / X5L" name="iAudio X5 / X5L"
platform=iaudiox5 buidserver_modelname=iaudiox5
bootloadermethod=file bootloadermethod=file
bootloadername=/iaudio/x5_fw.bin bootloadername=/iaudio/x5_fw.bin
bootloaderfile=/FIRMWARE/x5_fw.bin bootloaderfile=/FIRMWARE/x5_fw.bin
@ -351,26 +351,26 @@ resolution=160x128x16
manualname= manualname=
brand=Cowon brand=Cowon
usbid=0x0e210510, 0x0e210513 usbid=0x0e210510, 0x0e210513
voicename=iaudiox5 configure_modelname=x5
targetid=12 targetid=12
encoder=rbspeex encoder=rbspeex
[iaudiox5v] [iaudiox5v]
name="iAudio X5V" name="iAudio X5V"
platform=iaudiox5 buidserver_modelname=iaudiox5
bootloadermethod=file bootloadermethod=file
bootloadername=/iaudio/x5v_fw.bin bootloadername=/iaudio/x5v_fw.bin
bootloaderfile=/FIRMWARE/x5v_fw.bin bootloaderfile=/FIRMWARE/x5v_fw.bin
resolution=160x128x2 resolution=160x128x2
manualname= manualname=
brand=Cowon brand=Cowon
voicename=iaudiox5v configure_modelname=x5
targetid=12 targetid=12
encoder=rbspeex encoder=rbspeex
[iaudiom5] [iaudiom5]
name="iAudio M5 / M5L" name="iAudio M5 / M5L"
platform=iaudiom5 buidserver_modelname=iaudiom5
bootloadermethod=file bootloadermethod=file
bootloadername=/iaudio/m5_fw.bin bootloadername=/iaudio/m5_fw.bin
bootloaderfile=/FIRMWARE/m5_fw.bin bootloaderfile=/FIRMWARE/m5_fw.bin
@ -378,13 +378,13 @@ resolution=160x128x2
manualname= manualname=
brand=Cowon brand=Cowon
usbid=0x0e210520 usbid=0x0e210520
voicename=iaudiom5 configure_modelname=m5
targetid=28 targetid=28
encoder=rbspeex encoder=rbspeex
[iaudiom3] [iaudiom3]
name="iAudio M3 / M3L" name="iAudio M3 / M3L"
platform=iaudiom3 buidserver_modelname=iaudiom3
bootloadermethod=file bootloadermethod=file
bootloadername=/iaudio/cowon_m3.bin bootloadername=/iaudio/cowon_m3.bin
bootloaderfile=/FIRMWARE/cowon_m3.bin bootloaderfile=/FIRMWARE/cowon_m3.bin
@ -392,13 +392,13 @@ resolution=128x96x2
manualname= manualname=
brand=Cowon brand=Cowon
usbid=0x0e210500 usbid=0x0e210500
voicename=iaudiom3 configure_modelname=m3
targetid=37 targetid=37
encoder=rbspeex encoder=rbspeex
[gigabeatf] [gigabeatf]
name="Gigabeat F / X" name="Gigabeat F / X"
platform=gigabeatf buidserver_modelname=gigabeatf
bootloadermethod=file bootloadermethod=file
bootloadername=/gigabeat/FWIMG01.DAT bootloadername=/gigabeat/FWIMG01.DAT
bootloaderfile=/GBSYSTEM/FWIMG/FWIMG01.DAT bootloaderfile=/GBSYSTEM/FWIMG/FWIMG01.DAT
@ -406,13 +406,13 @@ resolution=240x320x16
manualname= manualname=
brand=Toshiba brand=Toshiba
usbid=0x09300009 usbid=0x09300009
voicename=gigabeatf configure_modelname=gigabeatf
targetid=20 targetid=20
encoder=rbspeex encoder=rbspeex
[sansae200] [sansae200]
name="Sansa E200" name="Sansa E200"
platform=sansae200 buidserver_modelname=sansae200
bootloadermethod=sansa bootloadermethod=sansa
bootloadername=/sandisk-sansa/e200/PP5022.mi4 bootloadername=/sandisk-sansa/e200/PP5022.mi4
resolution=176x220x16 resolution=176x220x16
@ -421,26 +421,26 @@ brand=Sandisk
usbid=0x07817421 usbid=0x07817421
usberror=0x07810720 usberror=0x07810720
usbincompat=0x07817422, 0x07817423 usbincompat=0x07817422, 0x07817423
voicename=sansae200 configure_modelname=e200
targetid=23 targetid=23
encoder=rbspeex encoder=rbspeex
[sansac200] [sansac200]
name="Sansa C200" name="Sansa C200"
platform=sansac200 buidserver_modelname=sansac200
bootloadermethod=sansa bootloadermethod=sansa
bootloadername=/sandisk-sansa/c200/firmware.mi4 bootloadername=/sandisk-sansa/c200/firmware.mi4
resolution=132x80x16 resolution=132x80x16
manualname= manualname=
brand=Sandisk brand=Sandisk
usbid=0x07817450, 0x07817451 usbid=0x07817450, 0x07817451
voicename=sansac200 configure_modelname=c200
targetid=30 targetid=30
encoder=rbspeex encoder=rbspeex
[mrobe100] [mrobe100]
name="m:robe100" name="m:robe100"
platform=mrobe100 buidserver_modelname=mrobe100
bootloadermethod=mi4 bootloadermethod=mi4
bootloadername=/olympus/mrobe100/pp5020.mi4 bootloadername=/olympus/mrobe100/pp5020.mi4
bootloaderfile=/System/pp5020.mi4 bootloaderfile=/System/pp5020.mi4
@ -448,7 +448,7 @@ resolution=160x128x1
manualname= manualname=
brand=Olympus brand=Olympus
usbid=0x07b40280 usbid=0x07b40280
voicename=mrobe100 configure_modelname=mrobe100
targetid=33 targetid=33
encoder=rbspeex encoder=rbspeex

View file

@ -511,7 +511,7 @@ bool RbUtilQt::installAuto()
{ {
QString file = QString("%1/%2/rockbox-%3-%4.zip") QString file = QString("%1/%2/rockbox-%3-%4.zip")
.arg(settings->releaseUrl(), versmap.value("rel_rev"), .arg(settings->releaseUrl(), versmap.value("rel_rev"),
settings->curPlatform(), versmap.value("rel_rev")); settings->curBuildserver_Modelname(), versmap.value("rel_rev"));
buildInfo.open(); buildInfo.open();
QSettings info(buildInfo.fileName(), QSettings::IniFormat, this); QSettings info(buildInfo.fileName(), QSettings::IniFormat, this);
buildInfo.close(); buildInfo.close();
@ -649,8 +649,8 @@ void RbUtilQt::installBootloader()
// special case for H10 pure: this player can have a different // special case for H10 pure: this player can have a different
// bootloader file filename. This is handled here to keep the install // bootloader file filename. This is handled here to keep the install
// class clean, though having it here is also not the nicest solution. // class clean, though having it here is also not the nicest solution.
if(settings->curPlatformName() == "h10_ums" if(platform == "h10_ums"
|| settings->curPlatformName() == "h10_mtp") { || platform == "h10_mtp") {
if(resolvePathCase(blfile).isEmpty()) if(resolvePathCase(blfile).isEmpty())
blfile = settings->mountpoint() blfile = settings->mountpoint()
+ settings->curBootloaderName().replace("H10", + settings->curBootloaderName().replace("H10",
@ -681,7 +681,7 @@ void RbUtilQt::installBootloader()
else if(bl->installed() == BootloaderInstallBase::BootloaderOther else if(bl->installed() == BootloaderInstallBase::BootloaderOther
&& bl->capabilities() & BootloaderInstallBase::Backup) && bl->capabilities() & BootloaderInstallBase::Backup)
{ {
QString targetFolder = settings->curPlatformName() + " Firmware Backup"; QString targetFolder = settings->curPlatform() + " Firmware Backup";
// remove invalid character(s) // remove invalid character(s)
targetFolder.remove(QRegExp("[:/]")); targetFolder.remove(QRegExp("[:/]"));
if(QMessageBox::question(this, tr("Create Bootloader backup"), if(QMessageBox::question(this, tr("Create Bootloader backup"),
@ -842,7 +842,7 @@ void RbUtilQt::installVoice()
QString voiceurl = settings->voiceUrl(); QString voiceurl = settings->voiceUrl();
voiceurl += settings->curVoiceName() + "-" + voiceurl += settings->curConfigure_Modelname() + "-" +
versmap.value("arch_date") + "-english.zip"; versmap.value("arch_date") + "-english.zip";
qDebug() << voiceurl; qDebug() << voiceurl;
@ -981,8 +981,8 @@ void RbUtilQt::uninstallBootloader(void)
} }
QString blfile = settings->mountpoint() + settings->curBootloaderFile(); QString blfile = settings->mountpoint() + settings->curBootloaderFile();
if(settings->curPlatformName() == "h10_ums" if(settings->curPlatform() == "h10_ums"
|| settings->curPlatformName() == "h10_mtp") { || settings->curPlatform() == "h10_mtp") {
if(resolvePathCase(blfile).isEmpty()) if(resolvePathCase(blfile).isEmpty())
blfile = settings->mountpoint() blfile = settings->mountpoint()
+ settings->curBootloaderName().replace("H10", + settings->curBootloaderName().replace("H10",