- moved kopenfilereader into the FileSystem class.

This commit is contained in:
Christoph Oelckers 2019-12-07 10:14:51 +01:00
parent ef87d2d4f9
commit 749eda32c5
39 changed files with 70 additions and 71 deletions

View file

@ -154,7 +154,7 @@ void FStbTexture::CreatePalettedPixels(uint8_t *buffer)
int FStbTexture::CopyPixels(FBitmap *bmp, int conversion)
{
auto lump = kopenFileReader(Name, 0);
auto lump = fileSystem.OpenFileReader(Name, 0);
if (!lump.isOpen()) return -1; // Just leave the texture blank.
int x, y, chan;
auto image = stbi_load_from_callbacks(&callbacks, &lump, &x, &y, &chan, STBI_rgb_alpha);