mirror of
https://github.com/hedge-dev/UnleashedRecomp.git
synced 2026-01-01 01:01:19 -06:00
* Fix DLC info message always being displayed * Use uint32_t for version numbers * Make AchievementManager follow the same naming convention as PersistentStorageManager * persistent_data: remove header size field * Make status success by default or on file not existing
31 lines
506 B
C++
31 lines
506 B
C++
#pragma once
|
|
|
|
#include <user/paths.h>
|
|
|
|
#define EXT_FILENAME "EXT-DATA"
|
|
#define EXT_SIGNATURE { 'E', 'X', 'T', ' ' }
|
|
#define EXT_VERSION 1
|
|
|
|
enum class EDLCFlag
|
|
{
|
|
ApotosAndShamar,
|
|
Spagonia,
|
|
Chunnan,
|
|
Mazuri,
|
|
Holoska,
|
|
EmpireCityAndAdabat,
|
|
Count
|
|
};
|
|
|
|
class PersistentData
|
|
{
|
|
public:
|
|
char Signature[4] EXT_SIGNATURE;
|
|
uint32_t Version{ EXT_VERSION };
|
|
uint64_t Reserved{};
|
|
bool DLCFlags[6]{};
|
|
|
|
bool VerifySignature() const;
|
|
bool VerifyVersion() const;
|
|
};
|