fixed savegame file name check.

Writer and reader for the savegame metadata were mismatched so the readback of non-ASCII filenames failed.
This commit is contained in:
Christoph Oelckers 2023-10-25 17:25:57 +02:00
parent 6d1ebf5f27
commit 28400a12f1
2 changed files with 3 additions and 2 deletions

View file

@ -1,4 +1,5 @@
/*
/*
** serializer.cpp
** Savegame wrapper around RapidJSON
**

View file

@ -1892,9 +1892,9 @@ bool G_CheckSaveGameWads (FSerializer &arc, bool printwarn)
bool printRequires = false;
FString text;
arc("Game WAD", text);
text = arc.GetString("Game WAD");
CheckSingleWad (text.GetChars(), printRequires, printwarn);
arc("Map WAD", text);
text = arc.GetString("Map WAD");
CheckSingleWad (text.GetChars(), printRequires, printwarn);
if (printRequires)