mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-05 22:47:03 +00:00
Fix slashes for Windows :p
This commit is contained in:
parent
cad7a05848
commit
39d1e21802
7 changed files with 34 additions and 17 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue