mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-12-09 05:08:43 +00:00
* Np library cleanup Moved all Np libraries to a Np folder, created files for Np error codes and structs shared between the libraries, removed empty auto-generated stubs from NpCommon and NpManager, and more things of that nature. Also implemented sceNpGetAccountCountry, since we already had sceNpGetAccountCountryA anyway. * Cleanup NpManager signed_out checks The PR that introduced the PSN signed in status reverted some of the changes I'd previously made to improve accuracy. Also they missed sceNpHasSignedUp, which just uses an internal variant of sceNpGetState for it's own check. * Copyright dates * Move signin check to NpManager RegisterLib Hardcoding it the way I did caused it to read signin status before config was read. * Fix RegisterLib names Not sure why these weren't adjusted yet, so I've adjusted them myself. * Fix NpCommon exports * Basic parameter validation in sceNpDeleteRequest and sceNpCreateRequest * More thorough request logic Created an enum to capture the current state of each request, using a vector to store them. I've made 3 states, none represents deleted requests, active represents requests that were made, but haven't been used yet, and complete represents used requests (a request cannot be used for multiple functions). * Functions sceNpCheckAvailability, sceNpCheckAvailabilityA, sceNpCheckNpReachability, sceNpGetAccountDateOfBirth, sceNpGetAccountDateOfBirthA added. * sceNpGetAccountLanguage, sceNpGetAccountLanguageA * sceNpGetGamePresenceStatus, sceNpGetGamePresenceStatusA Also reduced debug logging for functions with early signed out returns, since those should behave identically to real hardware so long as you keep PSN emulation disabled. * Fix sceNpGetAccountLanguage parameters Oops * sceNpGetNpReachabilityState * sceNpGetParentalControlInfo, sceNpGetParentalControlInfoA * Move OrbisNpState back to np_manager.h Until this sees use elsewhere, this doesn't need to be with np-wide things. * Clang
56 KiB
56 KiB