mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-24 05:01:41 +00:00
- fixed: G_UnsnapshotLevel should abort with an error if it cannot read the savegame.
- fixed: The exception handler in G_DoLoadGame needs to rethrow the exception it receives.
This commit is contained in:
parent
aeb5377821
commit
59d5b42abf
2 changed files with 6 additions and 2 deletions
|
@ -1999,7 +1999,7 @@ void G_DoLoadGame ()
|
|||
{
|
||||
// delete the resource file if anything goes wrong in here.
|
||||
if (resfile != nullptr) delete resfile;
|
||||
return;
|
||||
throw;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -1512,7 +1512,11 @@ void G_UnSnapshotLevel (bool hubLoad)
|
|||
if (level.info->isValid())
|
||||
{
|
||||
FSerializer arc;
|
||||
if (!arc.OpenReader(&level.info->Snapshot)) return;
|
||||
if (!arc.OpenReader(&level.info->Snapshot))
|
||||
{
|
||||
I_Error("Failed to load savegame");
|
||||
return;
|
||||
}
|
||||
|
||||
G_SerializeLevel (arc, hubLoad);
|
||||
level.FromSnapshot = true;
|
||||
|
|
Loading…
Reference in a new issue