From a1468c9d793315fac65f185f47b443c57082569b Mon Sep 17 00:00:00 2001 From: georgemoralis Date: Wed, 27 Mar 2024 13:00:27 +0200 Subject: [PATCH] loading libSceFios2.prx as lle as well --- src/core/libraries/libscesystemservice.cpp | 2 +- src/core/libraries/libsceuserservice.cpp | 5 +++-- src/main.cpp | 3 ++- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/core/libraries/libscesystemservice.cpp b/src/core/libraries/libscesystemservice.cpp index becee8a2..67490951 100644 --- a/src/core/libraries/libscesystemservice.cpp +++ b/src/core/libraries/libscesystemservice.cpp @@ -1883,7 +1883,7 @@ int PS4_SYSV_ABI sceSystemServiceNavigateToGoHome() { s32 PS4_SYSV_ABI sceSystemServiceParamGetInt(int param_id, int* value) { // TODO this probably should be stored in config for UI configuration - LOG_INFO(Lib_SystemService, "called"); + LOG_INFO(Lib_SystemService, "called param_id {}", param_id); if (value == nullptr) { LOG_ERROR(Lib_SystemService, "value is null"); return ORBIS_SYSTEM_SERVICE_ERROR_PARAMETER; diff --git a/src/core/libraries/libsceuserservice.cpp b/src/core/libraries/libsceuserservice.cpp index 9a9adbbd..8e2a7b51 100644 --- a/src/core/libraries/libsceuserservice.cpp +++ b/src/core/libraries/libsceuserservice.cpp @@ -1031,7 +1031,7 @@ int PS4_SYSV_ABI sceUserServiceGetTraditionalChineseInputType() { s32 PS4_SYSV_ABI sceUserServiceGetUserColor(int user_id, int* color) { // TODO fix me better - LOG_INFO(Lib_UserService, "called"); + LOG_INFO(Lib_UserService, "called user_id = {}",user_id); if (color == nullptr) { LOG_ERROR(Lib_UserService, "color is null"); return ORBIS_USER_SERVICE_ERROR_INVALID_ARGUMENT; @@ -1056,6 +1056,7 @@ int PS4_SYSV_ABI sceUserServiceGetUserGroupNum() { } s32 PS4_SYSV_ABI sceUserServiceGetUserName(int user_id, char* user_name, std::size_t size) { + LOG_INFO(Lib_UserService, "called user_id = {} ,size = {} ", user_id, size); if (user_name == nullptr) { LOG_ERROR(Lib_UserService, "user_name is null"); return ORBIS_USER_SERVICE_ERROR_INVALID_ARGUMENT; @@ -1110,7 +1111,7 @@ int PS4_SYSV_ABI sceUserServiceGetVolumeForSidetone() { } s32 PS4_SYSV_ABI sceUserServiceInitialize(const OrbisUserServiceInitializeParams* initParams) { - LOG_ERROR(Lib_UserService, "(STUBBED) called"); + LOG_WARNING(Lib_UserService, "(dummy) called"); return ORBIS_OK; } diff --git a/src/main.cpp b/src/main.cpp index c63bb528..92058541 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -57,7 +57,8 @@ int main(int argc, char* argv[]) { std::filesystem::path sce_module_folder = p.parent_path() / "sce_module"; if (std::filesystem::is_directory(sce_module_folder)) { for (const auto& entry : std::filesystem::directory_iterator(sce_module_folder)) { - if (entry.path().filename() == "libc.prx") { + if (entry.path().filename() == "libc.prx" || + entry.path().filename() == "libSceFios2.prx") { found = true; LOG_INFO(Loader, "Loading {}", entry.path().string().c_str()); linker->LoadModule(entry.path().string().c_str());