sceSaveDataMount2 abi fix

This commit is contained in:
georgemoralis 2023-11-15 14:49:18 +02:00
parent 8f4d837b59
commit 3cdc576dca
3 changed files with 11 additions and 3 deletions

View file

@ -474,7 +474,7 @@ void libcSymbolsRegister(Loader::SymbolsResolver* sym) {
LIB_FUNCTION("1uJgoVq3bQU", "libc", 1, "libc", 1, 1, _Getptolower);
LIB_FUNCTION("rcQCUr0EaRU", "libc", 1, "libc", 1, 1, _Getptoupper);
LIB_FUNCTION("sUP1hBaouOw", "libc", 1, "libc", 1, 1, _Getpctype);
LIB_FUNCTION("gNQ1V2vfXDE", "libc", 1, "libc", 1, 1, ps4_setjmp);
//LIB_FUNCTION("gNQ1V2vfXDE", "libc", 1, "libc", 1, 1, ps4_setjmp);
}
}; // namespace Core::Libraries::LibC

View file

@ -6,8 +6,16 @@
#include "common/log.h"
namespace Core::Libraries::LibSaveData {
s32 sceSaveDataMount2(const SceSaveDataMount2* mount, SceSaveDataMountResult* mountResult) {
constexpr bool log_file_savedata = true; // disable it to disable logging
s32 PS4_SYSV_ABI sceSaveDataMount2(const SceSaveDataMount2* mount, SceSaveDataMountResult* mountResult) {
PRINT_DUMMY_FUNCTION_NAME();
//Save Data are stored encrypted inside /user/home/user Id/title Id/savedata0/sce_sys/.
LOG_INFO_IF(log_file_savedata, "\t userId = {}\n", mount->userId);
LOG_INFO_IF(log_file_savedata, "\t dirname = {}\n", mount->dirName->data);
LOG_INFO_IF(log_file_savedata, "\t blocks = {}\n", mount->blocks);
LOG_INFO_IF(log_file_savedata, "\t mountMode = {}\n", mount->mountMode);
return SCE_OK;
}
void saveDataSymbolsRegister(Loader::SymbolsResolver* sym) {

View file

@ -44,7 +44,7 @@ struct SceSaveDataMountResult {
s32 padding;
};
s32 sceSaveDataMount2(const SceSaveDataMount2* mount, SceSaveDataMountResult* mountResult);
s32 PS4_SYSV_ABI sceSaveDataMount2(const SceSaveDataMount2* mount, SceSaveDataMountResult* mountResult);
void saveDataSymbolsRegister(Loader::SymbolsResolver* sym);