mirror of
https://github.com/hedge-dev/UnleashedRecomp.git
synced 2026-02-04 10:49:50 -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
29 lines
572 B
C++
29 lines
572 B
C++
#pragma once
|
|
|
|
#include <user/persistent_data.h>
|
|
|
|
enum class EExtBinStatus
|
|
{
|
|
Success,
|
|
IOError,
|
|
BadFileSize,
|
|
BadSignature,
|
|
BadVersion
|
|
};
|
|
|
|
class PersistentStorageManager
|
|
{
|
|
public:
|
|
static inline PersistentData Data{};
|
|
static inline EExtBinStatus BinStatus{ EExtBinStatus::Success };
|
|
|
|
static std::filesystem::path GetDataPath(bool checkForMods)
|
|
{
|
|
return GetSavePath(checkForMods) / EXT_FILENAME;
|
|
}
|
|
|
|
static bool ShouldDisplayDLCMessage(bool setOffendingDLCFlag);
|
|
static bool LoadBinary();
|
|
static bool SaveBinary();
|
|
};
|