[Materials] Use reader to hopefully prevent concurrency errors
This commit is contained in:
parent
c792f747e3
commit
61647226f4
@ -100,7 +100,7 @@ namespace Components
|
|||||||
std::string newImage = image;
|
std::string newImage = image;
|
||||||
Utils::String::Replace(newImage, "preview_", "loadscreen_");
|
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());
|
image = Utils::String::VA("%s", newImage.data());
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user