added sceSystemServiceGetStatus
This commit is contained in:
parent
7f0cf8784b
commit
7e6c741ed7
|
@ -1,7 +1,8 @@
|
||||||
|
#include "core/hle/libraries/libsystemservice/system_service.h"
|
||||||
|
|
||||||
#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 "core/hle/libraries/libsystemservice/system_service.h"
|
|
||||||
|
|
||||||
namespace Core::Libraries::LibSystemService {
|
namespace Core::Libraries::LibSystemService {
|
||||||
|
|
||||||
|
@ -10,9 +11,21 @@ s32 PS4_SYSV_ABI sceSystemServiceHideSplashScreen() {
|
||||||
return SCE_OK;
|
return SCE_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
s32 PS4_SYSV_ABI sceSystemServiceGetStatus(SceSystemServiceStatus* status) {
|
||||||
|
SceSystemServiceStatus st = {};
|
||||||
|
st.eventNum = 0;
|
||||||
|
st.isSystemUiOverlaid = false;
|
||||||
|
st.isInBackgroundExecution = false;
|
||||||
|
st.isCpuMode7CpuNormal = true;
|
||||||
|
st.isGameLiveStreamingOnAir = false;
|
||||||
|
st.isOutOfVrPlayArea = false;
|
||||||
|
*status = st;
|
||||||
|
return SCE_OK;
|
||||||
|
}
|
||||||
|
|
||||||
void systemServiceSymbolsRegister(Loader::SymbolsResolver* sym) {
|
void systemServiceSymbolsRegister(Loader::SymbolsResolver* sym) {
|
||||||
LIB_FUNCTION("Vo5V8KAwCmk", "libSceSystemService", 1, "libSceSystemService", 1, 1,
|
LIB_FUNCTION("Vo5V8KAwCmk", "libSceSystemService", 1, "libSceSystemService", 1, 1, sceSystemServiceHideSplashScreen);
|
||||||
sceSystemServiceHideSplashScreen);
|
LIB_FUNCTION("rPo6tV8D9bM", "libSceSystemService", 1, "libSceSystemService", 1, 1, sceSystemServiceGetStatus);
|
||||||
}
|
}
|
||||||
|
|
||||||
}; // namespace Core::Libraries::LibSystemService
|
}; // namespace Core::Libraries::LibSystemService
|
||||||
|
|
|
@ -8,7 +8,18 @@ class SymbolsResolver;
|
||||||
|
|
||||||
namespace Core::Libraries::LibSystemService {
|
namespace Core::Libraries::LibSystemService {
|
||||||
|
|
||||||
|
struct SceSystemServiceStatus {
|
||||||
|
s32 eventNum;
|
||||||
|
bool isSystemUiOverlaid;
|
||||||
|
bool isInBackgroundExecution;
|
||||||
|
bool isCpuMode7CpuNormal;
|
||||||
|
bool isGameLiveStreamingOnAir;
|
||||||
|
bool isOutOfVrPlayArea;
|
||||||
|
u08 reserved[];
|
||||||
|
};
|
||||||
|
|
||||||
s32 PS4_SYSV_ABI sceSystemServiceHideSplashScreen();
|
s32 PS4_SYSV_ABI sceSystemServiceHideSplashScreen();
|
||||||
|
s32 PS4_SYSV_ABI sceSystemServiceGetStatus(SceSystemServiceStatus* status);
|
||||||
|
|
||||||
void systemServiceSymbolsRegister(Loader::SymbolsResolver* sym);
|
void systemServiceSymbolsRegister(Loader::SymbolsResolver* sym);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue