mirror of
https://github.com/hedge-dev/UnleashedRecomp.git
synced 2025-04-28 13:27:58 +03:00
Make status success by default or on file not existing
This commit is contained in:
parent
f57d0ba49a
commit
f160be4bba
4 changed files with 4 additions and 14 deletions
|
@ -100,10 +100,7 @@ bool AchievementManager::LoadBinary()
|
|||
dataPath = GetDataPath(false);
|
||||
|
||||
if (!std::filesystem::exists(dataPath))
|
||||
{
|
||||
BinStatus = EAchBinStatus::NoFile;
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
std::error_code ec;
|
||||
|
|
|
@ -4,9 +4,7 @@
|
|||
|
||||
enum class EAchBinStatus
|
||||
{
|
||||
Unknown,
|
||||
Success,
|
||||
NoFile,
|
||||
IOError,
|
||||
BadFileSize,
|
||||
BadSignature,
|
||||
|
@ -18,7 +16,7 @@ class AchievementManager
|
|||
{
|
||||
public:
|
||||
static inline AchievementData Data{};
|
||||
static inline EAchBinStatus BinStatus{ EAchBinStatus::Unknown };
|
||||
static inline EAchBinStatus BinStatus{ EAchBinStatus::Success };
|
||||
|
||||
static std::filesystem::path GetDataPath(bool checkForMods)
|
||||
{
|
||||
|
|
|
@ -46,10 +46,7 @@ bool PersistentStorageManager::LoadBinary()
|
|||
dataPath = GetDataPath(false);
|
||||
|
||||
if (!std::filesystem::exists(dataPath))
|
||||
{
|
||||
BinStatus = EExtBinStatus::NoFile;
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
std::error_code ec;
|
||||
|
|
|
@ -4,9 +4,7 @@
|
|||
|
||||
enum class EExtBinStatus
|
||||
{
|
||||
Unknown,
|
||||
Success,
|
||||
NoFile,
|
||||
IOError,
|
||||
BadFileSize,
|
||||
BadSignature,
|
||||
|
@ -17,7 +15,7 @@ class PersistentStorageManager
|
|||
{
|
||||
public:
|
||||
static inline PersistentData Data{};
|
||||
static inline EExtBinStatus BinStatus{ EExtBinStatus::Unknown };
|
||||
static inline EExtBinStatus BinStatus{ EExtBinStatus::Success };
|
||||
|
||||
static std::filesystem::path GetDataPath(bool checkForMods)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue