mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-07-23 18:45:36 +00:00
initial sceSystemServiceParamGetInt
This commit is contained in:
parent
23ab99924f
commit
1bc750c88f
@ -3,6 +3,7 @@
|
|||||||
#include "common/log.h"
|
#include "common/log.h"
|
||||||
#include "core/hle/error_codes.h"
|
#include "core/hle/error_codes.h"
|
||||||
#include "core/hle/libraries/libs.h"
|
#include "core/hle/libraries/libs.h"
|
||||||
|
#include <common/debug.h>
|
||||||
|
|
||||||
namespace Core::Libraries::LibSystemService {
|
namespace Core::Libraries::LibSystemService {
|
||||||
|
|
||||||
@ -23,9 +24,21 @@ s32 PS4_SYSV_ABI sceSystemServiceGetStatus(SceSystemServiceStatus* status) {
|
|||||||
return SCE_OK;
|
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) {
|
void systemServiceSymbolsRegister(Loader::SymbolsResolver* sym) {
|
||||||
LIB_FUNCTION("Vo5V8KAwCmk", "libSceSystemService", 1, "libSceSystemService", 1, 1, sceSystemServiceHideSplashScreen);
|
LIB_FUNCTION("Vo5V8KAwCmk", "libSceSystemService", 1, "libSceSystemService", 1, 1, sceSystemServiceHideSplashScreen);
|
||||||
LIB_FUNCTION("rPo6tV8D9bM", "libSceSystemService", 1, "libSceSystemService", 1, 1, sceSystemServiceGetStatus);
|
LIB_FUNCTION("rPo6tV8D9bM", "libSceSystemService", 1, "libSceSystemService", 1, 1, sceSystemServiceGetStatus);
|
||||||
|
LIB_FUNCTION("fZo48un7LK4", "libSceSystemService", 1, "libSceSystemService", 1, 1, sceSystemServiceParamGetInt);
|
||||||
}
|
}
|
||||||
|
|
||||||
}; // namespace Core::Libraries::LibSystemService
|
}; // namespace Core::Libraries::LibSystemService
|
||||||
|
@ -8,6 +8,8 @@ class SymbolsResolver;
|
|||||||
|
|
||||||
namespace Core::Libraries::LibSystemService {
|
namespace Core::Libraries::LibSystemService {
|
||||||
|
|
||||||
|
using SceSystemServiceParamId = s32;
|
||||||
|
|
||||||
struct SceSystemServiceStatus {
|
struct SceSystemServiceStatus {
|
||||||
s32 eventNum;
|
s32 eventNum;
|
||||||
bool isSystemUiOverlaid;
|
bool isSystemUiOverlaid;
|
||||||
|
Loading…
Reference in New Issue
Block a user