From 49e848a11bd30adbc3fcdd6867613cc529ac899b Mon Sep 17 00:00:00 2001 From: raphaelthegreat <47210458+raphaelthegreat@users.noreply.github.com> Date: Mon, 10 Jun 2024 19:47:11 +0300 Subject: [PATCH] savedata: Stub sceSaveDataDialogUpdateStatus to return finished --- src/core/libraries/kernel/libkernel.cpp | 6 ------ src/core/libraries/kernel/libkernel.h | 1 - src/core/libraries/system/savedatadialog.cpp | 2 +- 3 files changed, 1 insertion(+), 8 deletions(-) diff --git a/src/core/libraries/kernel/libkernel.cpp b/src/core/libraries/kernel/libkernel.cpp index 23a7f88cb..10d7269ab 100644 --- a/src/core/libraries/kernel/libkernel.cpp +++ b/src/core/libraries/kernel/libkernel.cpp @@ -36,12 +36,6 @@ static void* PS4_SYSV_ABI sceKernelGetProcParam() { return reinterpret_cast(linker->GetProcParam()); } -int32_t PS4_SYSV_ABI sceKernelReleaseDirectMemory(off_t start, size_t len) { - auto* memory = Core::Memory::Instance(); - memory->Free(start, len); - return 0; -} - static PS4_SYSV_ABI void stack_chk_fail() { UNREACHABLE(); } diff --git a/src/core/libraries/kernel/libkernel.h b/src/core/libraries/kernel/libkernel.h index 8f1690e49..0cc757774 100644 --- a/src/core/libraries/kernel/libkernel.h +++ b/src/core/libraries/kernel/libkernel.h @@ -18,7 +18,6 @@ struct OrbisTimesec { u32 dst_sec; }; -int32_t PS4_SYSV_ABI sceKernelReleaseDirectMemory(size_t start, size_t len); int* PS4_SYSV_ABI __Error(); void LibKernel_Register(Core::Loader::SymbolsResolver* sym); diff --git a/src/core/libraries/system/savedatadialog.cpp b/src/core/libraries/system/savedatadialog.cpp index 3cdd75baf..d842fd11a 100644 --- a/src/core/libraries/system/savedatadialog.cpp +++ b/src/core/libraries/system/savedatadialog.cpp @@ -55,7 +55,7 @@ int PS4_SYSV_ABI sceSaveDataDialogTerminate() { int PS4_SYSV_ABI sceSaveDataDialogUpdateStatus() { LOG_ERROR(Lib_SaveDataDialog, "(STUBBED) called"); - return ORBIS_OK; + return 3; // SCE_COMMON_DIALOG_STATUS_FINISHED } void RegisterlibSceSaveDataDialog(Core::Loader::SymbolsResolver* sym) {