initial sceSystemServiceParamGetInt

This commit is contained in:
georgemoralis 2023-11-20 08:51:31 +02:00
parent 23ab99924f
commit 1bc750c88f
2 changed files with 15 additions and 0 deletions

View File

@ -3,6 +3,7 @@
#include "common/log.h"
#include "core/hle/error_codes.h"
#include "core/hle/libraries/libs.h"
#include <common/debug.h>
namespace Core::Libraries::LibSystemService {
@ -23,9 +24,21 @@ s32 PS4_SYSV_ABI sceSystemServiceGetStatus(SceSystemServiceStatus* status) {
return SCE_OK;
}
s32 PS4_SYSV_ABI sceSystemServiceParamGetInt(SceSystemServiceParamId paramId, s32* value) {
if (paramId == 1) {
*value = 1; // english
} else if (paramId == 1000) {
*value = 1; // button assing cross
} else {
BREAKPOINT();
}
return SCE_OK;
}
void systemServiceSymbolsRegister(Loader::SymbolsResolver* sym) {
LIB_FUNCTION("Vo5V8KAwCmk", "libSceSystemService", 1, "libSceSystemService", 1, 1, sceSystemServiceHideSplashScreen);
LIB_FUNCTION("rPo6tV8D9bM", "libSceSystemService", 1, "libSceSystemService", 1, 1, sceSystemServiceGetStatus);
LIB_FUNCTION("fZo48un7LK4", "libSceSystemService", 1, "libSceSystemService", 1, 1, sceSystemServiceParamGetInt);
}
}; // namespace Core::Libraries::LibSystemService

View File

@ -8,6 +8,8 @@ class SymbolsResolver;
namespace Core::Libraries::LibSystemService {
using SceSystemServiceParamId = s32;
struct SceSystemServiceStatus {
s32 eventNum;
bool isSystemUiOverlaid;