[Materials] Use reader to hopefully prevent concurrency errors

This commit is contained in:
momo5502 2016-12-13 22:19:18 +01:00
parent c792f747e3
commit 61647226f4

View File

@ -100,7 +100,7 @@ namespace Components
std::string newImage = image;
Utils::String::Replace(newImage, "preview_", "loadscreen_");
if (FileSystem::File(fmt::sprintf("images/%s.iwi", newImage.data())).exists())
if (FileSystem::FileReader(fmt::sprintf("images/%s.iwi", newImage.data())).exists())
{
image = Utils::String::VA("%s", newImage.data());
}