Fix more Warnings, and also a bug with checking the dirstructure for themes in rbutil

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12862 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Dominik Wenger 2007-03-20 15:38:48 +00:00
parent 2671b6cda6
commit 22a673062f
4 changed files with 24 additions and 28 deletions

View file

@ -105,7 +105,7 @@ bool checkZip(wxString zipname)
wxString name = entry->GetName();
if(entry->IsDir())
{
if(name.Contains(wxT(".rockbox\\")))
if(name.Contains(wxT(".rockbox")))
{
return true;
}
@ -126,6 +126,7 @@ int DownloadURL(wxString src, wxString dest)
wxPD_AUTO_HIDE | wxPD_SMOOTH | wxPD_ELAPSED_TIME |
wxPD_REMAINING_TIME | wxPD_CAN_ABORT);
progress->Update(0);
progress->SetSize(500,200);
input = true;
wxURL* in_http = new wxURL(src);
@ -647,8 +648,7 @@ bool InstallRbutil(wxString dest)
if (! copied_exe)
{
str.Printf(wxT("%s" PATH_SEP EXE_NAME), gv->AppDir.c_str());
dstr.Printf(wxT("%s" PATH_SEP EXE_NAME), destdir.c_str(),
filestocopy[i].AfterLast(PATH_SEP_CHR).c_str());
dstr.Printf(wxT("%s" PATH_SEP EXE_NAME), destdir.c_str());
if (! wxCopyFile(str, dstr) )
{
buf.Printf(wxT("Can't copy program binary %s -> %s"),