From abaa8f855f18e0c17210e5bd73c073582286ea07 Mon Sep 17 00:00:00 2001 From: RipleyTom Date: Thu, 24 Sep 2020 21:28:27 +0200 Subject: [PATCH] sceNpManagerGetAccountRegion impl --- rpcs3/Emu/Cell/Modules/sceNp.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/rpcs3/Emu/Cell/Modules/sceNp.cpp b/rpcs3/Emu/Cell/Modules/sceNp.cpp index 0997a9f4f9..68c6eff819 100644 --- a/rpcs3/Emu/Cell/Modules/sceNp.cpp +++ b/rpcs3/Emu/Cell/Modules/sceNp.cpp @@ -2702,6 +2702,12 @@ error_code sceNpManagerGetAccountRegion(vm::ptr countryCode, v return SCE_NP_ERROR_INVALID_STATE; } + memset(countryCode.get_ptr(), 0, sizeof(countryCode)); + countryCode->data[0] = 'u'; + countryCode->data[1] = 's'; + + *language = CELL_SYSUTIL_LANG_ENGLISH_US; + return CELL_OK; }