Fix slashes for Windows :p

This commit is contained in:
Nekotekina 2014-03-21 13:45:26 +04:00
parent cad7a05848
commit 39d1e21802
7 changed files with 34 additions and 17 deletions

View file

@ -56,7 +56,7 @@ bool vfsLocalFile::Create(const wxString& path)
for(uint p=1; p < path.Len() && path[p] != '\0' ; p++)
{
for(; p < path.Len() && path[p] != '\0'; p++)
if(path[p] == '/') break;
if(path[p] == '/' || path[p] == '\\') break; // ???
if(p == path.Len() || path[p] == '\0')
break;
@ -70,7 +70,8 @@ bool vfsLocalFile::Create(const wxString& path)
}
//create file
if(path(path.Len() - 1, 1) != '/' && !wxFileExists(path))
wxString m = path(path.Len() - 1, 1);
if(m != '/' && m != '\\' && !wxFileExists(path)) // ???
{
wxFile f;
return f.Create(path);