mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-04-20 03:24:49 +00:00
time,sceSystemServiceParamGetInt
This commit is contained in:
parent
f4afe2490a
commit
3c12c48f52
5 changed files with 17 additions and 0 deletions
|
@ -416,6 +416,7 @@ void libcSymbolsRegister(Loader::SymbolsResolver* sym) {
|
|||
LIB_FUNCTION("AEJdIVZTEmo", "libc", 1, "libc", 1, 1, qsort);
|
||||
LIB_FUNCTION("zlfEH8FmyUA", "libc", 1, "libc", 1, 1, _Stoul);
|
||||
LIB_FUNCTION("VPbJwTCgME0", "libc", 1, "libc", 1, 1, srand);
|
||||
LIB_FUNCTION("wLlFkwG9UcQ", "libc", 1, "libc", 1, 1, time);
|
||||
|
||||
// math functions
|
||||
LIB_FUNCTION("EH-x713A99c", "libc", 1, "libc", 1, 1, atan2f);
|
||||
|
|
|
@ -40,4 +40,5 @@ unsigned long int PS4_SYSV_ABI _Stoul(const char* str, char** endptr, int base)
|
|||
|
||||
void PS4_SYSV_ABI srand(unsigned int seed) { return std::srand(seed); }
|
||||
|
||||
s64 PS4_SYSV_ABI time(s64* pt) { return std::time(pt); }
|
||||
} // namespace Core::Libraries::LibC
|
||||
|
|
|
@ -13,4 +13,5 @@ void PS4_SYSV_ABI qsort(void* ptr, size_t count, size_t size, int(PS4_SYSV_ABI*
|
|||
int PS4_SYSV_ABI rand();
|
||||
unsigned long int PS4_SYSV_ABI _Stoul(const char* str, char** endptr, int base);
|
||||
void PS4_SYSV_ABI srand(unsigned int seed);
|
||||
s64 PS4_SYSV_ABI time(s64* pt);
|
||||
} // namespace Core::Libraries::LibC
|
||||
|
|
|
@ -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,20 @@ 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 {
|
||||
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
|
||||
|
|
|
@ -8,6 +8,7 @@ class SymbolsResolver;
|
|||
|
||||
namespace Core::Libraries::LibSystemService {
|
||||
|
||||
using SceSystemServiceParamId = s32;
|
||||
struct SceSystemServiceStatus {
|
||||
s32 eventNum;
|
||||
bool isSystemUiOverlaid;
|
||||
|
@ -20,6 +21,7 @@ struct SceSystemServiceStatus {
|
|||
|
||||
s32 PS4_SYSV_ABI sceSystemServiceHideSplashScreen();
|
||||
s32 PS4_SYSV_ABI sceSystemServiceGetStatus(SceSystemServiceStatus* status);
|
||||
s32 PS4_SYSV_ABI sceSystemServiceParamGetInt(SceSystemServiceParamId paramId, s32* value);
|
||||
|
||||
void systemServiceSymbolsRegister(Loader::SymbolsResolver* sym);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue