Commenting out all of this, should fix the pathing glitches on *nix, without breaking windows functionality.

This commit is contained in:
Ben Anderson 2014-03-29 20:52:39 +13:00
parent 6141c33630
commit b317b2feda
1 changed files with 9 additions and 9 deletions

View File

@ -35,19 +35,19 @@ bool vfsLocalFile::Open(const wxString& path, vfsOpenMode mode)
{ {
Close(); Close();
if(m_device) // if(m_device)
{ // {
if(!m_file.Access(vfsDevice::GetWinPath(m_device->GetLocalPath(), path), vfs2wx_mode(mode))) return false; // if(!m_file.Access(vfsDevice::GetWinPath(m_device->GetLocalPath(), path), vfs2wx_mode(mode))) return false;
return m_file.Open(vfsDevice::GetWinPath(m_device->GetLocalPath(), path), vfs2wx_mode(mode)) && // return m_file.Open(vfsDevice::GetWinPath(m_device->GetLocalPath(), path), vfs2wx_mode(mode)) &&
vfsFileBase::Open(vfsDevice::GetPs3Path(m_device->GetPs3Path(), path), mode); // vfsFileBase::Open(vfsDevice::GetPs3Path(m_device->GetPs3Path(), path), mode);
} // }
else // else
{ // {
if(!m_file.Access(path, vfs2wx_mode(mode))) return false; if(!m_file.Access(path, vfs2wx_mode(mode))) return false;
return m_file.Open(path, vfs2wx_mode(mode)) && vfsFileBase::Open(path, mode); return m_file.Open(path, vfs2wx_mode(mode)) && vfsFileBase::Open(path, mode);
} // }
} }
bool vfsLocalFile::Create(const wxString& path) bool vfsLocalFile::Create(const wxString& path)