mirror of
https://github.com/ZDoom/Raze.git
synced 2025-05-30 08:51:08 +00:00
backend update from GZDoom.
This commit is contained in:
parent
80fe0788c9
commit
c0d166c307
74 changed files with 1496 additions and 392 deletions
|
@ -71,14 +71,14 @@ void FSavegameManager::ReadSaveStrings()
|
|||
FResourceFile *savegame = FResourceFile::OpenResourceFile(entry.FilePath.c_str(), true);
|
||||
if (savegame != nullptr)
|
||||
{
|
||||
FResourceLump *info = savegame->FindLump("info.json");
|
||||
if (info == nullptr)
|
||||
auto info = savegame->FindEntry("info.json");
|
||||
if (info < 0)
|
||||
{
|
||||
// savegame info not found. This is not a savegame so leave it alone.
|
||||
delete savegame;
|
||||
continue;
|
||||
}
|
||||
auto fr = info->NewReader();
|
||||
auto fr = savegame->GetEntryReader(info, true);
|
||||
FString title;
|
||||
int check = G_ValidateSavegame(fr, &title, true);
|
||||
fr.Close();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue