mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-09 21:22:39 -05:00
more Unicode fixes for rutil, thanx to preglow. Also made Theme Preview window modeless
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12785 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
410af8955f
commit
c9cafd846f
12 changed files with 114 additions and 62 deletions
|
|
@ -368,10 +368,11 @@ bool fwpatcher(int mode)
|
|||
{
|
||||
if(mode == BOOTLOADER_ADD)
|
||||
{
|
||||
wxString md5sum_str,src,dest,err;
|
||||
char md5sum_str[32];
|
||||
wxString src,dest,err;
|
||||
int series,table_entry;
|
||||
|
||||
if (!FileMD5(gv->curfirmware, &md5sum_str)) {
|
||||
if (!FileMD5(gv->curfirmware, md5sum_str)) {
|
||||
ERR_DIALOG(wxT("Could not open firmware"), wxT("Open Firmware"));
|
||||
return false;
|
||||
}
|
||||
|
|
@ -426,11 +427,11 @@ bool fwpatcher(int mode)
|
|||
src.Printf(wxT("%s" PATH_SEP "download" PATH_SEP "new.hex"),
|
||||
gv->stdpaths->GetUserDataDir().c_str());
|
||||
|
||||
if(gv->curplat == "h100")
|
||||
if(gv->curplat == wxT("h100"))
|
||||
dest.Printf(wxT("%s" PATH_SEP "ihp_100.hex"),gv->curdestdir.c_str());
|
||||
else if(gv->curplat == "h120")
|
||||
else if(gv->curplat == wxT("h120"))
|
||||
dest.Printf(wxT("%s" PATH_SEP "ihp_120.hex"),gv->curdestdir.c_str());
|
||||
else if(gv->curplat == "h300")
|
||||
else if(gv->curplat == wxT("h300"))
|
||||
dest.Printf(wxT("%s" PATH_SEP "H300.hex"),gv->curdestdir.c_str());
|
||||
|
||||
if(!wxRenameFile(src,dest))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue