diff --git a/src/core/hle/service/filesystem/fsp/fsp_srv.cpp b/src/core/hle/service/filesystem/fsp/fsp_srv.cpp index 313751872..70cd31926 100644 --- a/src/core/hle/service/filesystem/fsp/fsp_srv.cpp +++ b/src/core/hle/service/filesystem/fsp/fsp_srv.cpp @@ -77,7 +77,7 @@ FSP_SRV::FSP_SRV(Core::System& system_) {30, D<&FSP_SRV::OpenGameCardStorage>, "OpenGameCardStorage"}, {31, D<&FSP_SRV::OpenGameCardFileSystem>, "OpenGameCardFileSystem"}, {32, D<&FSP_SRV::ExtendSaveDataFileSystem>, "ExtendSaveDataFileSystem"}, - {33, nullptr, "DeleteCacheStorage"}, + {33, D<&FSP_SRV::DeleteCacheStorage>, "DeleteCacheStorage"}, {34, D<&FSP_SRV::GetCacheStorageSize>, "GetCacheStorageSize"}, {35, nullptr, "CreateSaveDataFileSystemByHashSalt"}, {36, nullptr, "OpenHostFileSystemWithOption"}, @@ -606,6 +606,12 @@ Result FSP_SRV::ExtendSaveDataFileSystem(FileSys::SaveDataSpaceId space_id, u64 R_SUCCEED(); } +Result FSP_SRV::DeleteCacheStorage(u16 index) { + LOG_WARNING(Service_FS, "(STUBBED) called, index={}", index); + // Cache storage deletion is not implemented, but we return success to prevent crashes + R_SUCCEED(); +} + Result FSP_SRV::GetCacheStorageSize(s32 index, Out out_data_size, Out out_journal_size) { LOG_WARNING(Service_FS, "(STUBBED) called with index={}", index); diff --git a/src/core/hle/service/filesystem/fsp/fsp_srv.h b/src/core/hle/service/filesystem/fsp/fsp_srv.h index 8f63daa5f..f23a2fb22 100644 --- a/src/core/hle/service/filesystem/fsp/fsp_srv.h +++ b/src/core/hle/service/filesystem/fsp/fsp_srv.h @@ -110,6 +110,7 @@ private: Result OpenMultiCommitManager(OutInterface out_interface); Result ExtendSaveDataFileSystem(FileSys::SaveDataSpaceId space_id, u64 save_data_id, s64 available_size, s64 journal_size); + Result DeleteCacheStorage(u16 index); Result GetCacheStorageSize(s32 index, Out out_data_size, Out out_journal_size); Result OpenDeviceOperator(OutInterface out_interface); Result OpenSdCardDetectionEventNotifier(OutInterface out_interface);