mirror of
https://github.com/KytyPS5/KytyPS5.git
synced 2026-10-27 16:02:37 +00:00
* libNet: answer sceNpGetAccountLanguage2 as a signed-out user sceNpGetAccountLanguage2 was not registered, so games that call it hit the unresolved-import stub. The stub returns 0, which tells the game the request succeeded and that the language code buffer now holds the account's language, but nothing was written to it. Saros (#1053) calls it from its analytics thread right after sceNpGetAccountAge, each on its own request. sceNpGetAccountAge already reports SCE_NP_ERROR_SIGNED_OUT there, so the game is told the user is signed out for one query and signed in for the next. Demon's Souls (#890), Ghost of Yotei (#1095) and NHL 27 (#1101) import it as well. Register it next to the other NpManager account queries and answer the way they do: SCE_NP_ERROR_INVALID_ARGUMENT for a request id <= 0 or a null output pointer, SCE_NP_ERROR_SIGNED_OUT otherwise. The output is left untouched because nothing was looked up. * libNet: reject missing account language requests --------- Co-authored-by: overlordxrz-source <overlordxrz-source@users.noreply.github.com> Co-authored-by: nmzik <Nmzik@mail.ru>