#include "prx/libc/include/general/VabiMacros.hpp" #include #include #include #include extern "C" { std::int32_t APS5_VABI sceRegMgrNonSysGetInt(std::int64_t key, std::int32_t unk, std::int32_t* data); } static void Require(bool value) { if (!value) std::abort(); } template static bool ReportsNotImplemented(const char* name, TCall call) { try { call(); } catch (const std::runtime_error& error) { return std::string(error.what()) == std::string(name) + " not implemented"; } return false; } int main() { std::int32_t value = 0; Require(ReportsNotImplemented("sceRegMgrNonSysGetInt", [&] { sceRegMgrNonSysGetInt(0, 0, &value); })); Require(ReportsNotImplemented("sceRegMgrNonSysGetInt", [&] { sceRegMgrNonSysGetInt(-1, 1, nullptr); })); }