#include "prx/libSceMoveTracker/include/Api.hpp" #include #include #include namespace { void Require(bool value) { if (!value) std::abort(); } constexpr int kErrInvalidArg = static_cast(0x80ef0003); constexpr std::uint32_t kFill = 0xaaaaaaaau; } int main() { std::array total{kFill, kFill}; std::array processing{kFill, kFill}; Require(sceMoveTrackerGetWorkingMemorySize(nullptr, nullptr) == kErrInvalidArg); Require(sceMoveTrackerGetWorkingMemorySize(total.data(), nullptr) == kErrInvalidArg); Require(sceMoveTrackerGetWorkingMemorySize(nullptr, processing.data()) == kErrInvalidArg); Require(total[0] == kFill && total[1] == kFill && processing[0] == kFill && processing[1] == kFill); Require(sceMoveTrackerGetWorkingMemorySize(total.data(), processing.data()) == 0); Require(total[0] == 0xa00000 && processing[0] == 0x800000); Require(total[1] == kFill && processing[1] == kFill); return 0; }