mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-10 14:51:40 +00:00
eliminate the intermediate reader for the savegame pics.
This commit is contained in:
parent
78a71bb662
commit
301323944f
1 changed files with 1 additions and 4 deletions
|
@ -316,10 +316,7 @@ unsigned FSavegameManagerBase::ExtractSaveData(int index)
|
|||
auto pic = resf->FindEntry("savepic.png");
|
||||
if (pic >= 0)
|
||||
{
|
||||
FileReader picreader;
|
||||
// we must create a memory reader copy of the PNG if we want to close the savegame file here.
|
||||
auto rd = resf->Read(pic);
|
||||
picreader.OpenMemoryArray(rd);
|
||||
FileReader picreader = resf->GetEntryReader(pic, true);
|
||||
PNGHandle *png = M_VerifyPNG(picreader);
|
||||
if (png != nullptr)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue