mirror of
https://github.com/hedge-dev/UnleashedRecomp.git
synced 2026-01-02 17:51:27 -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
14 lines
255 B
C++
14 lines
255 B
C++
#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;
|
|
}
|