Include filesize when opening a file with searchpaths

This commit is contained in:
Jan
2021-03-13 10:27:18 +01:00
parent 62247cecda
commit 83080db991
11 changed files with 72 additions and 35 deletions

View File

@ -47,9 +47,9 @@ namespace IW4
{
const auto filePathImage = searchPath->Open(imageFileName);
if (filePathImage != nullptr)
if (filePathImage.IsOpen())
{
loadedTexture = loader.LoadIwi(*filePathImage);
loadedTexture = loader.LoadIwi(*filePathImage.m_stream);
}
}