2019-11-14 21:07:43 +01:00
|
|
|
#pragma once
|
|
|
|
|
2020-04-11 23:54:33 +02:00
|
|
|
#include "resourcefile.h"
|
2020-11-21 21:31:50 +01:00
|
|
|
#include "build.h"
|
|
|
|
|
|
|
|
extern FixedBitArray<MAXSPRITES> activeSprites;
|
2019-11-14 21:07:43 +01:00
|
|
|
|
2020-01-12 23:16:21 +01:00
|
|
|
bool OpenSaveGameForWrite(const char *fname, const char *name);
|
2019-11-14 21:07:43 +01:00
|
|
|
bool OpenSaveGameForRead(const char *name);
|
|
|
|
|
|
|
|
FileWriter *WriteSavegameChunk(const char *name);
|
|
|
|
FileReader ReadSavegameChunk(const char *name);
|
|
|
|
|
|
|
|
bool FinishSavegameWrite();
|
|
|
|
void FinishSavegameRead();
|
2019-11-27 00:41:26 +01:00
|
|
|
|
|
|
|
// Savegame utilities
|
|
|
|
class FileReader;
|
|
|
|
|
|
|
|
FString G_BuildSaveName (const char *prefix);
|
2019-12-10 22:22:59 +01:00
|
|
|
int G_ValidateSavegame(FileReader &fr, FString *savetitle, bool formenu);
|
2019-11-27 00:41:26 +01:00
|
|
|
|
2020-10-07 18:32:57 +02:00
|
|
|
void G_LoadGame(const char* filename);
|
|
|
|
void G_SaveGame(const char* fn, const char* desc, bool ok4q, bool forceq);
|
|
|
|
|
2020-10-04 18:31:48 +02:00
|
|
|
void M_Autosave();
|
2020-01-21 19:22:38 +01:00
|
|
|
|
2019-11-27 00:41:26 +01:00
|
|
|
#define SAVEGAME_EXT ".dsave"
|
2019-11-30 19:23:54 +01:00
|
|
|
|