mirror of
https://github.com/hedge-dev/UnleashedRecomp.git
synced 2026-01-06 11:40:19 -06:00
Fix DLC info message always being displayed (#1393)
* 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
This commit is contained in:
13
UnleashedRecomp/user/persistent_data.cpp
Normal file
13
UnleashedRecomp/user/persistent_data.cpp
Normal file
@@ -0,0 +1,13 @@
|
||||
#include "persistent_data.h"
|
||||
|
||||
bool PersistentData::VerifySignature() const
|
||||
{
|
||||
char sig[4] = EXT_SIGNATURE;
|
||||
|
||||
return memcmp(Signature, sig, sizeof(Signature)) == 0;
|
||||
}
|
||||
|
||||
bool PersistentData::VerifyVersion() const
|
||||
{
|
||||
return Version <= EXT_VERSION;
|
||||
}
|
||||
Reference in New Issue
Block a user