Fixed getTempDir.

This commit is contained in:
Branimir Karadžić
2017-01-17 12:03:38 -08:00
parent a5f247b783
commit fb2daf7d9d
2 changed files with 15 additions and 3 deletions

View File

@@ -333,6 +333,15 @@ namespace bx
}
}
FileInfo fi;
if (stat("/tmp", fi)
&& FileInfo::Directory == fi.m_type)
{
strlncpy(_out, *_inOutSize, "/tmp");
*_inOutSize = 4;
return true;
}
return false;
#endif // BX_PLATFORM_*
}