implement sceNpManagerGetMyLanguages

This commit is contained in:
RipleyTom 2022-10-30 16:42:23 +01:00 committed by Megamouse
parent c639b7d5f4
commit 06dc6909c4

View file

@ -18,6 +18,7 @@
#include "Emu/Cell/lv2/sys_fs.h"
#include "Emu/NP/np_handler.h"
#include "Emu/NP/np_contexts.h"
#include "Emu/system_config.h"
LOG_CHANNEL(sceNp);
@ -3192,6 +3193,10 @@ error_code sceNpManagerGetMyLanguages(vm::ptr<SceNpMyLanguages> myLanguages)
return SCE_NP_ERROR_INVALID_STATE;
}
myLanguages->language1 = SCE_NP_LANG_ENGLISH_US;
myLanguages->language2 = g_cfg.sys.language != CELL_SYSUTIL_LANG_ENGLISH_US ? g_cfg.sys.language : -1;
myLanguages->language3 = -1;
return CELL_OK;
}