- refactor of the quote storage.

This was consolidated for both EDuke and RedNukem frontends, put into a class with strict access control and the length limit was lifted.
The new class will eventually allow better localization control.
This commit is contained in:
Christoph Oelckers 2019-12-04 00:28:28 +01:00
parent c561255018
commit 72857db17b
26 changed files with 418 additions and 596 deletions

View file

@ -44,6 +44,7 @@
#include "statistics.h"
#include "secrets.h"
#include "s_music.h"
#include "quotemgr.h"
static CompositeSavegameWriter savewriter;
static FResourceFile *savereader;
@ -79,6 +80,7 @@ bool OpenSaveGameForRead(const char *name)
ReadStatistics();
SECRET_Load();
MUS_Restore();
quoteMgr.ReadFromSavegame();
}
return savereader != nullptr;
@ -155,6 +157,7 @@ void G_WriteSaveHeader(const char *name, const char*mapname, const char *maptitl
SaveStatistics();
SECRET_Save();
MUS_Save();
quoteMgr.WriteToSavegame();
}
//=============================================================================