[Project64] Fix CPath::IsRelative for non WIN32

This commit is contained in:
zilmar 2019-02-09 05:02:02 +10:30
parent 23f040c0dd
commit aca70f317c
1 changed files with 9 additions and 4 deletions

View File

@ -587,11 +587,16 @@ bool CPath::IsRelative() const
{
return false;
}
if (m_strPath.length() > 2 && m_strPath[0] == DIRECTORY_DELIMITER && m_strPath[1] == DIRECTORY_DELIMITER)
{
return false;
}
#else
if (m_strPath.length() > 1 && m_strPath[0] == DIRECTORY_DELIMITER)
{
return false;
}
#endif
if (m_strPath.length() > 1 && m_strPath[0] == DIRECTORY_DELIMITER && m_strPath[1] == DIRECTORY_DELIMITER)
{
return false;
}
return true;
}