mirror of
https://github.com/jakcron/nstool
synced 2024-12-27 15:11:12 +00:00
12 lines
332 B
C++
12 lines
332 B
C++
|
#include <nx/ApplicationControlPropertyUtils.h>
|
||
|
|
||
|
bool nx::ApplicationControlPropertyUtils::validateSaveDataSizeMax(int64_t size, int64_t alignment)
|
||
|
{
|
||
|
return (alignment != 0 && (size & (alignment - 1)) != 0) == false;
|
||
|
}
|
||
|
|
||
|
bool nx::ApplicationControlPropertyUtils::validateSaveDataSize(int64_t size)
|
||
|
{
|
||
|
return (size & 0x3fff) == 0;
|
||
|
}
|