diff options
author | Dominik Wenger <domonoky@googlemail.com> | 2007-03-01 17:22:49 +0000 |
---|---|---|
committer | Dominik Wenger <domonoky@googlemail.com> | 2007-03-01 17:22:49 +0000 |
commit | ba7d27786d1af8d3843edde0fb3cea5be4a2cb37 (patch) | |
tree | 3cb4cce087bbc6ac7a80132ffd48677cc18c65ad /rbutil | |
parent | 7230674b5dc955120780535c83260b1c6e67aeaa (diff) | |
download | rockbox-ba7d27786d1af8d3843edde0fb3cea5be4a2cb37.tar.gz rockbox-ba7d27786d1af8d3843edde0fb3cea5be4a2cb37.zip |
Fix for the Bootloader installation for H10, thanks to barrywardell
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12537 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'rbutil')
-rwxr-xr-x | rbutil/bootloaders.cpp | 19 | ||||
-rw-r--r-- | rbutil/rbutilFrm.cpp | 3 | ||||
-rw-r--r-- | rbutil/wizard_pages.cpp | 7 |
3 files changed, 14 insertions, 15 deletions
diff --git a/rbutil/bootloaders.cpp b/rbutil/bootloaders.cpp index a2a52be209..dd92b4a343 100755 --- a/rbutil/bootloaders.cpp +++ b/rbutil/bootloaders.cpp | |||
@@ -276,9 +276,10 @@ bool h10(int mode) | |||
276 | { | 276 | { |
277 | wxString err,src,dest,path1,path2; | 277 | wxString err,src,dest,path1,path2; |
278 | 278 | ||
279 | int pos = gv->curbootloader.Find('/'); | 279 | int pos = gv->curbootloader.Find('/'); |
280 | if(pos == wxNOT_FOUND) pos = 0; | ||
280 | wxString firmwarename = gv->curbootloader.SubString(pos,gv->curbootloader.Length()); | 281 | wxString firmwarename = gv->curbootloader.SubString(pos,gv->curbootloader.Length()); |
281 | wxString firmDir = gv->curbootloader.SubString(0,pos); | 282 | //wxString firmDir = gv->curbootloader.SubString(0,pos); |
282 | 283 | ||
283 | if(mode == BOOTLOADER_ADD) | 284 | if(mode == BOOTLOADER_ADD) |
284 | { | 285 | { |
@@ -294,12 +295,12 @@ bool h10(int mode) | |||
294 | return false; | 295 | return false; |
295 | } | 296 | } |
296 | 297 | ||
297 | path1.Printf("%s" PATH_SEP "SYSTEM" PATH_SEP "%s",gv->curdestdir.c_str(),firmwarename.c_str()); | 298 | path1.Printf("%sSYSTEM" PATH_SEP "%s",gv->curdestdir.c_str(),firmwarename.c_str()); |
298 | path2.Printf("%s" PATH_SEP "SYSTEM" PATH_SEP "Original.mi4",gv->curdestdir.c_str()); | 299 | path2.Printf("%sSYSTEM" PATH_SEP "Original.mi4",gv->curdestdir.c_str()); |
299 | 300 | ||
300 | if(!wxFileExists(path1)) //Firmware dosent exists on player | 301 | if(!wxFileExists(path1)) //Firmware dosent exists on player |
301 | { | 302 | { |
302 | path1.Printf("%s" PATH_SEP "SYSTEM" PATH_SEP "H10EMP.mi4"); //attempt other firmwarename | 303 | path1.Printf("%sSYSTEM" PATH_SEP "H10EMP.mi4"); //attempt other firmwarename |
303 | if(!wxFileExists(path1)) //Firmware dosent exists on player | 304 | if(!wxFileExists(path1)) //Firmware dosent exists on player |
304 | { | 305 | { |
305 | err.Printf("[ERR] File %s does not Exist",path1.c_str()); | 306 | err.Printf("[ERR] File %s does not Exist",path1.c_str()); |
@@ -307,9 +308,9 @@ bool h10(int mode) | |||
307 | return false; | 308 | return false; |
308 | } | 309 | } |
309 | } | 310 | } |
310 | if(!wxFileExists(path2)) //there is already a original firmware | 311 | if(wxFileExists(path2)) //there is already a original firmware |
311 | { | 312 | { |
312 | err.Printf("[ERR] File %s does not Exist",path1.c_str()); | 313 | err.Printf("[ERR2] File %s does Exist",path2.c_str()); |
313 | ERR_DIALOG(err, _("Bootloader add")); | 314 | ERR_DIALOG(err, _("Bootloader add")); |
314 | return false; | 315 | return false; |
315 | } | 316 | } |
@@ -331,8 +332,8 @@ bool h10(int mode) | |||
331 | } | 332 | } |
332 | else if(mode == BOOTLOADER_REM) | 333 | else if(mode == BOOTLOADER_REM) |
333 | { | 334 | { |
334 | path1.Printf("%s" PATH_SEP "SYSTEM" PATH_SEP "%s",gv->curdestdir.c_str(),firmwarename.c_str()); | 335 | path1.Printf("%sSYSTEM" PATH_SEP "%s",gv->curdestdir.c_str(),firmwarename.c_str()); |
335 | path2.Printf("%s" PATH_SEP "SYSTEM" PATH_SEP "Original.mi4",gv->curdestdir.c_str()); | 336 | path2.Printf("%sSYSTEM" PATH_SEP "Original.mi4",gv->curdestdir.c_str()); |
336 | if(!wxFileExists(path1)) //Firmware dosent exists on player | 337 | if(!wxFileExists(path1)) //Firmware dosent exists on player |
337 | { | 338 | { |
338 | path1.Printf("%s" PATH_SEP "SYSTEM" PATH_SEP "H10EMP.mi4"); //attempt other firmwarename | 339 | path1.Printf("%s" PATH_SEP "SYSTEM" PATH_SEP "H10EMP.mi4"); //attempt other firmwarename |
diff --git a/rbutil/rbutilFrm.cpp b/rbutil/rbutilFrm.cpp index 738da27f2a..c90930c47a 100644 --- a/rbutil/rbutilFrm.cpp +++ b/rbutil/rbutilFrm.cpp | |||
@@ -458,8 +458,7 @@ void rbutilFrm::OnBootloaderBtn(wxCommandEvent& event) | |||
458 | { | 458 | { |
459 | if(h10(BOOTLOADER_ADD)) | 459 | if(h10(BOOTLOADER_ADD)) |
460 | { | 460 | { |
461 | wxMessageDialog* msg = new wxMessageDialog(this, _("The Bootloader has been patched and copied on your device.\n" | 461 | wxMessageDialog* msg = new wxMessageDialog(this, _("The Bootloader has been patched and copied on your device.\n") |
462 | "Now use the Firmware upgrade option of your Device\n") | ||
463 | ,"Installation", wxOK |wxICON_INFORMATION); | 462 | ,"Installation", wxOK |wxICON_INFORMATION); |
464 | msg->ShowModal(); | 463 | msg->ShowModal(); |
465 | delete msg; | 464 | delete msg; |
diff --git a/rbutil/wizard_pages.cpp b/rbutil/wizard_pages.cpp index e7eab77f4c..53d56634e8 100644 --- a/rbutil/wizard_pages.cpp +++ b/rbutil/wizard_pages.cpp | |||
@@ -481,8 +481,8 @@ wxBuildPage::wxBuildPage(wxWizard *parent) : wxWizardPageSimple(parent) | |||
481 | wxArrayString* array = new wxArrayString(); | 481 | wxArrayString* array = new wxArrayString(); |
482 | buf.Printf(_("Rockbox stable version (%s)") , gv->last_release.c_str()); | 482 | buf.Printf(_("Rockbox stable version (%s)") , gv->last_release.c_str()); |
483 | array->Add(buf); | 483 | array->Add(buf); |
484 | array->Add(_("Daily Build")); | 484 | array->Add(_("Archived Build")); |
485 | array->Add(_("Bleeding Edge Build ")); | 485 | array->Add(_("Current Build ")); |
486 | 486 | ||
487 | BuildRadioBox = new wxRadioBox(this, ID_BUILD_BOX, _("Version"), | 487 | BuildRadioBox = new wxRadioBox(this, ID_BUILD_BOX, _("Version"), |
488 | wxDefaultPosition, wxDefaultSize, *array, 0, wxRA_SPECIFY_ROWS); | 488 | wxDefaultPosition, wxDefaultSize, *array, 0, wxRA_SPECIFY_ROWS); |
@@ -539,8 +539,7 @@ void wxBuildPage::OnBuildBox(wxCommandEvent& event) | |||
539 | break; | 539 | break; |
540 | case BUILD_BLEEDING: | 540 | case BUILD_BLEEDING: |
541 | str = _("This is the absolute up to the minute Rockbox built after\n" | 541 | str = _("This is the absolute up to the minute Rockbox built after\n" |
542 | "the last change was made. This should be avoided unless the\n" | 542 | "the last change was made.\n\n" |
543 | "daily version is causing problems for some reason.\n\n" | ||
544 | "Note: This option will always download a fresh copy from the\n" | 543 | "Note: This option will always download a fresh copy from the\n" |
545 | "web server.\n"); | 544 | "web server.\n"); |
546 | NoCacheCheckBox->Enable(false); | 545 | NoCacheCheckBox->Enable(false); |