summaryrefslogtreecommitdiff
path: root/rbutil/installlog.cpp
diff options
context:
space:
mode:
authorDominik Wenger <domonoky@googlemail.com>2007-03-15 18:02:15 +0000
committerDominik Wenger <domonoky@googlemail.com>2007-03-15 18:02:15 +0000
commitc9cafd846fbc43fba9eb559cb86160a94f7f97a1 (patch)
tree80ca1998e0eee7176f7115026d29852bdd67a335 /rbutil/installlog.cpp
parent410af8955f89ee5ff9498448bcc185988869bdb3 (diff)
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
Diffstat (limited to 'rbutil/installlog.cpp')
-rw-r--r--rbutil/installlog.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/rbutil/installlog.cpp b/rbutil/installlog.cpp
index e9dad794cb..4be4a97352 100644
--- a/rbutil/installlog.cpp
+++ b/rbutil/installlog.cpp
@@ -38,9 +38,9 @@ InstallLog::InstallLog(wxString logname, bool CreateLog)
return;
}
- logfile->SetPath("/InstallLog");
- if (logfile->Exists("Version") &&
- logfile->Read("Version", 0l) != LOGFILE_VERSION )
+ logfile->SetPath(wxT("/InstallLog"));
+ if (logfile->Exists(wxT("Version")) &&
+ logfile->Read(wxT("Version"), 0l) != LOGFILE_VERSION )
{
buf.Printf(_("Logfile version mismatch: %s"), logname.c_str() );
wxLogWarning(buf);
@@ -48,7 +48,7 @@ InstallLog::InstallLog(wxString logname, bool CreateLog)
return;
}
- logfile->Write("Version", LOGFILE_VERSION);
+ logfile->Write(wxT("Version"), LOGFILE_VERSION);
dirtyflag = false;
}
@@ -105,12 +105,12 @@ unsigned int InstallLog::WriteFile(wxArrayString filepaths)
wxArrayString* InstallLog::GetInstalledFiles()
{
- wxString curdir = "";
+ wxString curdir = wxT("");
if (dirtyflag) return NULL;
workingAS.Clear();
- EnumerateCurDir("");
+ EnumerateCurDir(wxT(""));
wxArrayString* out = new wxArrayString(workingAS);
return out;
@@ -129,8 +129,8 @@ void InstallLog::EnumerateCurDir(wxString curdir)
contflag = logfile->GetFirstGroup(curname, dummy);
while (contflag)
{
- buf.Printf("%s/%s", curdir.c_str(), curname.c_str() );
- buf2 = buf; buf2.Replace(wxT("/"), wxT(PATH_SEP));
+ buf.Printf(wxT("%s/%s"), curdir.c_str(), curname.c_str() );
+ buf2 = buf; buf2.Replace(wxT("/"), PATH_SEP);
workingAS.Add(buf2);
EnumerateCurDir(buf);
contflag = logfile->GetNextGroup(curname, dummy);
@@ -141,8 +141,8 @@ void InstallLog::EnumerateCurDir(wxString curdir)
{
if (curname != wxT(DIRECTORY_KLUDGE) )
{
- buf.Printf("%s/%s", curdir.c_str(), curname.c_str() );
- buf2 = buf; buf2.Replace(wxT("/"), wxT(PATH_SEP));
+ buf.Printf(wxT("%s/%s"), curdir.c_str(), curname.c_str() );
+ buf2 = buf; buf2.Replace(wxT("/"), PATH_SEP);
workingAS.Add(buf2);
}
contflag = logfile->GetNextEntry(curname, dummy);