mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-01-14 11:50:49 +00:00
- take down the savegame loader's resources in proper order.
This commit is contained in:
parent
bdfa13e341
commit
d90b23ba9a
1 changed files with 3 additions and 1 deletions
|
@ -133,6 +133,7 @@ bool ReadSavegame(const char* name)
|
||||||
delete savereader;
|
delete savereader;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
file.Close();
|
||||||
|
|
||||||
FResourceLump* info = savereader->FindLump("session.json");
|
FResourceLump* info = savereader->FindLump("session.json");
|
||||||
if (info == nullptr)
|
if (info == nullptr)
|
||||||
|
@ -149,11 +150,12 @@ bool ReadSavegame(const char* name)
|
||||||
delete savereader;
|
delete savereader;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
info->Unlock();
|
|
||||||
|
|
||||||
// Load the savegame.
|
// Load the savegame.
|
||||||
loadMapBackup(currentLevel->fileName);
|
loadMapBackup(currentLevel->fileName);
|
||||||
SerializeSession(arc);
|
SerializeSession(arc);
|
||||||
|
arc.Close();
|
||||||
|
info->Unlock();
|
||||||
delete savereader;
|
delete savereader;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue