nstool/lib/libhac/source/ApplicationControlPropertyUtils.cpp

12 lines
346 B
C++
Raw Normal View History

2018-08-07 07:17:51 +00:00
#include <nn/hac/ApplicationControlPropertyUtils.h>
2018-08-07 07:17:51 +00:00
bool nn::hac::ApplicationControlPropertyUtils::validateSaveDataSizeMax(int64_t size, int64_t alignment)
{
return (alignment != 0 && (size & (alignment - 1)) != 0) == false;
}
2018-08-07 07:17:51 +00:00
bool nn::hac::ApplicationControlPropertyUtils::validateSaveDataSize(int64_t size)
{
return (size & 0x3fff) == 0;
}