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