mirror of
https://github.com/boykopovar/AnyPS5.git
synced 2026-10-23 17:13:13 -05:00
sceUserServiceGetAgeLevel reported 0. On a PS5 (firmware 13.60) the value is the age of the user's parental restriction (0, 7, 12 and 15 measured) and 0xFFFFFFFF without one, so 0 is a user restricted to age 0. A user who is not logged in returns 0x80960009 (not logged in) with or without an output, before the null output check. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
18 lines
677 B
C++
18 lines
677 B
C++
#ifndef CORE_LIBS_PRX_LIBSCEUSERSERVICE_USERSERVICE_HPP
|
|
#define CORE_LIBS_PRX_LIBSCEUSERSERVICE_USERSERVICE_HPP
|
|
|
|
#include <cstddef>
|
|
#include <cstdint>
|
|
|
|
constexpr int USER_SERVICE_OK = 0;
|
|
constexpr int USER_SERVICE_ERROR_INVALID_ARGUMENT = -2137653243;
|
|
constexpr int USER_SERVICE_ERROR_NO_EVENT = -2137653241;
|
|
constexpr int USER_SERVICE_ERROR_NOT_LOGGED_IN = -2137653239;
|
|
constexpr int USER_SERVICE_USER_ID_INVALID = -1;
|
|
constexpr int USER_SERVICE_INITIAL_USER_ID = 0x10000000;
|
|
constexpr int USER_SERVICE_ERROR_BUFFER_TOO_SHORT = -2137653238;
|
|
constexpr std::size_t USER_SERVICE_MAX_USER_NAME_LENGTH = 16;
|
|
constexpr const char* USER_SERVICE_INITIAL_USER_NAME = "Player";
|
|
|
|
#endif
|