sceSaveDataMount2 just return save data not found for now

This commit is contained in:
georgemoralis 2024-04-01 22:31:25 +03:00
parent 6066c89607
commit 9d8fc61954
3 changed files with 44 additions and 5 deletions

View file

@ -2,6 +2,7 @@
// SPDX-License-Identifier: GPL-2.0-or-later
// Generated By moduleGenerator
#include <common/assert.h>
#include "common/logging/log.h"
#include "error_codes.h"
#include "libscesavedata.h"
@ -328,9 +329,15 @@ int PS4_SYSV_ABI sceSaveDataMount() {
return ORBIS_OK;
}
int PS4_SYSV_ABI sceSaveDataMount2() {
LOG_ERROR(Lib_SaveData, "(STUBBED) called");
return ORBIS_OK;
s32 PS4_SYSV_ABI sceSaveDataMount2(const OrbisSaveDataMount2* mount,
OrbisSaveDataMountResult* mount_result) {
// will return save data not found , breakpoint for others
LOG_ERROR(Lib_SaveData, "(DUMMY) called user_id = {} dir_name = {} blocks = {} mount_mode = {}",
mount->user_id, mount->dir_name->data, mount->blocks, mount->mount_mode);
if (mount->mount_mode == 1) { // open
return 0x809F0008; // save data not found
}
UNREACHABLE();
}
int PS4_SYSV_ABI sceSaveDataMount5() {