mirror of https://github.com/axmolengine/axmol.git
Merge pull request #10740 from newnon/v3_windows_network_path
Windows network path fix
This commit is contained in:
commit
8e6d9d5dd2
|
@ -123,9 +123,9 @@ bool FileUtilsWin32::isFileExistInternal(const std::string& strFilePath) const
|
||||||
|
|
||||||
bool FileUtilsWin32::isAbsolutePath(const std::string& strPath) const
|
bool FileUtilsWin32::isAbsolutePath(const std::string& strPath) const
|
||||||
{
|
{
|
||||||
if ( strPath.length() > 2
|
if ( (strPath.length() > 2
|
||||||
&& ( (strPath[0] >= 'a' && strPath[0] <= 'z') || (strPath[0] >= 'A' && strPath[0] <= 'Z') )
|
&& ( (strPath[0] >= 'a' && strPath[0] <= 'z') || (strPath[0] >= 'A' && strPath[0] <= 'Z') )
|
||||||
&& strPath[1] == ':')
|
&& strPath[1] == ':') || (strPath[0] == '/' && strPath[1] == '/'))
|
||||||
{
|
{
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue