mirror of
https://github.com/ZDoom/Raze.git
synced 2025-05-30 00:41:24 +00:00
- added date and play time display to savegames.
This commit is contained in:
parent
a5f08a4734
commit
17eddda36c
2 changed files with 6 additions and 2 deletions
|
@ -379,8 +379,8 @@ unsigned FSavegameManager::ExtractSaveData(int index)
|
|||
FString comment = sjson_get_string(root, "Creation Time", "");
|
||||
FString fcomment = sjson_get_string(root, "Map Label", "");
|
||||
FString ncomment = sjson_get_string(root, "Map Name", "");
|
||||
FStringf pcomment("%s - %s\n", fcomment.GetChars(), ncomment.GetChars());
|
||||
comment += pcomment;
|
||||
FString mtime = sjson_get_string(root, "Map Time", "");
|
||||
comment.AppendFormat("\n%s - %s\n%s", fcomment.GetChars(), ncomment.GetChars(), mtime.GetChars());
|
||||
SaveCommentString = comment;
|
||||
|
||||
// Extract pic (todo: let the renderer write a proper PNG file instead of a raw canvas dunp of the software renderer - and make it work for all games.)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue