Skip to content

Commit

Permalink
fixed savegame file name check.
Browse files Browse the repository at this point in the history
Writer and reader for the savegame metadata were mismatched so the readback of non-ASCII filenames failed.
  • Loading branch information
coelckers committed Oct 25, 2023
1 parent e1e856b commit aa63cbc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/common/engine/serializer.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/*
/*
** serializer.cpp
** Savegame wrapper around RapidJSON
**
Expand Down
4 changes: 2 additions & 2 deletions src/g_game.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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, printRequires, printwarn);
arc("Map WAD", text);
text = arc.GetString("Map WAD");
CheckSingleWad (text, printRequires, printwarn);

if (printRequires)
Expand Down

0 comments on commit aa63cbc

Please sign in to comment.