From a28ab0a408d0e05f9c17d90a43340ba8919ce5b7 Mon Sep 17 00:00:00 2001 From: Morgan Creekmore Date: Sat, 7 Nov 2020 03:47:44 -0600 Subject: [PATCH] Set AccountAge to 18 to fix age restriction checks, fix incorrect logged function name (#9218) --- rpcs3/Emu/Cell/Modules/sceNp.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/rpcs3/Emu/Cell/Modules/sceNp.cpp b/rpcs3/Emu/Cell/Modules/sceNp.cpp index f47b3b88f1..bb5edc2ef3 100644 --- a/rpcs3/Emu/Cell/Modules/sceNp.cpp +++ b/rpcs3/Emu/Cell/Modules/sceNp.cpp @@ -2737,6 +2737,8 @@ error_code sceNpManagerGetAccountAge(vm::ptr age) return SCE_NP_ERROR_INVALID_STATE; } + *age = 18; + return CELL_OK; } @@ -2807,7 +2809,7 @@ error_code sceNpManagerGetChatRestrictionFlag(vm::ptr isRestricted) error_code sceNpManagerGetCachedInfo(CellSysutilUserId userId, vm::ptr param) { - sceNp.todo("sceNpManagerGetChatRestrictionFlag(userId=%d, param=*0x%x)", userId, param); + sceNp.todo("sceNpManagerGetCachedInfo(userId=%d, param=*0x%x)", userId, param); const auto nph = g_fxo->get>();