mirror of
https://github.com/ZDoom/Raze.git
synced 2025-06-02 18:21:06 +00:00
- 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:
parent
c561255018
commit
72857db17b
26 changed files with 418 additions and 596 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
//=============================================================================
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue