Files
AnyPS5/core/libs/tests/GuestNpAuthAuthorizedAppCode.cpp
T
Mouad-Scriptz-0andClaude Fable 5.1 09c985464c feat(libSceNpAuth): return the signed-out error from sceNpAuthGetAuthorizedAppCode
There is no PSN sign-in, so the code getter answers SCE_NP_ERROR_SIGNED_OUT
instead of throwing; its parameters are unknown and not read. Minecraft
(PPSA17221) calls it after its sign-in dialog and treats the result as
offline play. The request, token and wait calls are left to #3604.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-10-12 22:54:23 +02:00

14 lines
362 B
C++

#include "prx/libc/include/general/VabiMacros.hpp"
#include <cstdlib>
extern "C" {
int APS5_VABI sceNpAuthGetAuthorizedAppCode();
}
int main() {
constexpr int kSignedOut = static_cast<int>(0x80550006);
if (sceNpAuthGetAuthorizedAppCode() != kSignedOut) std::abort();
if (sceNpAuthGetAuthorizedAppCode() != kSignedOut) std::abort();
return 0;
}