Fix slashes for Linux

This commit is contained in:
Sacha 2014-03-17 23:41:15 +10:00
parent a00f47b5e4
commit 6968137bbc
7 changed files with 20 additions and 21 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] == '/') break;
if(p == path.Len() || path[p] == '\0')
break;
@ -70,7 +70,7 @@ bool vfsLocalFile::Create(const wxString& path)
}
//create file
if(path(path.Len() - 1, 1) != '\\' && !wxFileExists(path))
if(path(path.Len() - 1, 1) != '/' && !wxFileExists(path))
{
wxFile f;
return f.Create(path);