Skip to content
Snippets Groups Projects
Commit d38c2d8c authored by Andrey Kleshchev's avatar Andrey Kleshchev
Browse files

SL-14992 Replaced LLAPRFile's isExist with LLDirUtil's fileExists in fmodstudio

This particular case of LLAPRFile crashes due to thread issues (and if it doesn't it might be affecting some other apr call due to using default pool).
Function is not opening the .dsf file in question and LLAPRFile won't ensure that file exists till the end of the function, it just checks that file exists at a given moment. No point to overcomplicate things by adding thread safe pool, so replaced with dirutil.
parent d79617dd
No related branches found
No related tags found
No related merge requests found
......@@ -661,7 +661,7 @@ bool LLAudioBufferFMODSTUDIO::loadWAV(const std::string& filename)
return false;
}
if (!LLAPRFile::isExist(filename, NULL, LL_APR_RPB))
if (!gDirUtilp->fileExists(filename))
{
// File not found, abort.
return false;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment