mirror of
https://github.com/boykopovar/AnyPS5.git
synced 2026-10-21 16:12:47 -05:00
sceUserServiceInitialize reads the thread priority from the first int of its parameters, and sceUserServiceInitialize2 takes it as its argument. A PS5 returns 0x80960005 for a priority outside 0x100 to 0x2FF, and 0x80960003 when Initialize2 is called on an initialized service, where this returned success. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
23 lines
1.0 KiB
C++
23 lines
1.0 KiB
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_NOT_INITIALIZED = static_cast<int>(0x80960002u);
|
|
constexpr int USER_SERVICE_ERROR_ALREADY_INITIALIZED = static_cast<int>(0x80960003u);
|
|
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_THREAD_PRIORITY_MIN = 0x100;
|
|
constexpr int USER_SERVICE_THREAD_PRIORITY_MAX = 0x2FF;
|
|
constexpr int USER_SERVICE_ERROR_BUFFER_TOO_SHORT = -2137653238;
|
|
constexpr int USER_SERVICE_ERROR_UNKNOWN_USER = static_cast<int>(0x80960105u);
|
|
constexpr std::size_t USER_SERVICE_MAX_USER_NAME_LENGTH = 16;
|
|
constexpr const char* USER_SERVICE_INITIAL_USER_NAME = "Player";
|
|
|
|
#endif
|