System: Add save state compression mode options

This commit is contained in:
Stenzek
2024-08-06 17:02:21 +10:00
parent 70411783cd
commit aeb9d383ce
7 changed files with 124 additions and 48 deletions

View File

@ -11,13 +11,6 @@ static constexpr u32 SAVE_STATE_MINIMUM_VERSION = 42;
static_assert(SAVE_STATE_VERSION >= SAVE_STATE_MINIMUM_VERSION);
enum class SaveStateCompression : u32
{
None = 0,
ZLib = 1,
ZStd = 2,
};
#pragma pack(push, 4)
struct SAVE_STATE_HEADER
{
@ -28,6 +21,13 @@ struct SAVE_STATE_HEADER
MAX_SAVE_STATE_SIZE = 32 * 1024 * 1024,
};
enum class CompressionType : u32
{
None = 0,
Deflate = 1,
Zstandard = 2,
};
u32 magic;
u32 version;
char title[MAX_TITLE_LENGTH];