shadPS4/src/core/libraries/np_manager
Stephen Miller 4fa501c8d5
Additional libSceNpManager functions and cleanup (#2195)
* Error return on sceNpGetAccountIdA

Confirmed through hardware testing, this returns ORBIS_NP_ERROR_SIGNED_OUT on a signed out console.

Parameters are based on fpPS4 code.

* Fix compile

* Move errors to separate file

* Cleanup function headers

Swaps user_ids to use our OrbisUserServiceUserId type, and fixes parameter names to align with our coding standards.

* Add proper parameter checks

* Implement sceNpGetAccountId

This function takes an online_id, uses an NpManager function to get the user_id, then uses that user_id to perform the same internal functions as sceNpGetAccountIdA.

* Implement sceNpHasSignedUp

* Fix sceNpGetAccountId

Further hardware testing shows that these always write 0 to account_id when failing.

* Update np_manager.cpp
2025-01-19 19:12:42 -08:00
..
np_manager.cpp Additional libSceNpManager functions and cleanup (#2195) 2025-01-19 19:12:42 -08:00
np_manager.h Additional libSceNpManager functions and cleanup (#2195) 2025-01-19 19:12:42 -08:00
np_manager_error.h Additional libSceNpManager functions and cleanup (#2195) 2025-01-19 19:12:42 -08:00