mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-13 07:02:31 -05:00
Unix targets require a second (mode) parameter to wxMkdir. rbutil now compiles cleanly for me on Linux with the just-released wxWidgets 2.8.0
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11735 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
6581146eb1
commit
27b2e7502c
3 changed files with 4 additions and 4 deletions
|
|
@ -256,7 +256,7 @@ int UnzipFile(wxString src, wxString destdir, bool isInstall)
|
||||||
if (entry->IsDir() ) {
|
if (entry->IsDir() ) {
|
||||||
wxDir* dirname = new wxDir(in_str);
|
wxDir* dirname = new wxDir(in_str);
|
||||||
if (! dirname->Exists(in_str) ) {
|
if (! dirname->Exists(in_str) ) {
|
||||||
if (wxMkDir(in_str) ) {
|
if (wxMkDir(in_str, 0777) ) {
|
||||||
buf.Printf(_("Unable to create directory %s"),
|
buf.Printf(_("Unable to create directory %s"),
|
||||||
in_str.c_str() );
|
in_str.c_str() );
|
||||||
errnum = 100;
|
errnum = 100;
|
||||||
|
|
|
||||||
|
|
@ -23,7 +23,7 @@ bool rbutilFrmApp::OnInit()
|
||||||
if (! wxDirExists(buf) )
|
if (! wxDirExists(buf) )
|
||||||
{
|
{
|
||||||
wxLogNull lognull;
|
wxLogNull lognull;
|
||||||
if (! wxMkdir(buf))
|
if (! wxMkdir(buf, 0777))
|
||||||
{
|
{
|
||||||
wxLogFatalError(_("Can't create data directory %s"),
|
wxLogFatalError(_("Can't create data directory %s"),
|
||||||
buf.c_str());
|
buf.c_str());
|
||||||
|
|
@ -43,7 +43,7 @@ bool rbutilFrmApp::OnInit()
|
||||||
|
|
||||||
buf = buf.Left(buf.Len() - 10);
|
buf = buf.Left(buf.Len() - 10);
|
||||||
buf.Append(wxT("download"));
|
buf.Append(wxT("download"));
|
||||||
if (! wxDirExists(buf) ) wxMkdir(buf);
|
if (! wxDirExists(buf) ) wxMkdir(buf, 0777);
|
||||||
|
|
||||||
wxFileSystem::AddHandler(new wxInternetFSHandler);
|
wxFileSystem::AddHandler(new wxInternetFSHandler);
|
||||||
wxFileSystem::AddHandler(new wxZipFSHandler);
|
wxFileSystem::AddHandler(new wxZipFSHandler);
|
||||||
|
|
|
||||||
|
|
@ -235,7 +235,7 @@ void rbutilFrm::OnFileWipeCache(wxCommandEvent& event)
|
||||||
MESG_DIALOG(_("Errors occured deleting the local download cache."));
|
MESG_DIALOG(_("Errors occured deleting the local download cache."));
|
||||||
}
|
}
|
||||||
|
|
||||||
wxMkDir(cacheloc);
|
wxMkDir(cacheloc, 0777);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue