fs: Added fsDeleteSaveDataFileSystemBySaveDataAttribute().

This commit is contained in:
Pablo Curiel 2020-12-15 04:10:53 -04:00
parent 139cb1e99c
commit 76fd03e55a
2 changed files with 13 additions and 0 deletions

View File

@ -341,6 +341,7 @@ Result fsDeleteSaveDataFileSystem(u64 application_id);
Result fsCreateSaveDataFileSystem(const FsSaveDataAttribute* attr, const FsSaveDataCreationInfo* creation_info, const FsSaveDataMetaInfo* meta);
Result fsCreateSaveDataFileSystemBySystemSaveDataId(const FsSaveDataAttribute* attr, const FsSaveDataCreationInfo* creation_info);
Result fsDeleteSaveDataFileSystemBySaveDataSpaceId(FsSaveDataSpaceId save_data_space_id, u64 saveID); ///< [2.0.0+]
Result fsDeleteSaveDataFileSystemBySaveDataAttribute(FsSaveDataSpaceId save_data_space_id, const FsSaveDataAttribute* attr); ///< [4.0.0+]
Result fsIsExFatSupported(bool* out);

View File

@ -259,6 +259,18 @@ Result fsDeleteSaveDataFileSystemBySaveDataSpaceId(FsSaveDataSpaceId save_data_s
return _fsObjectDispatchIn(&g_fsSrv, 25, in);
}
Result fsDeleteSaveDataFileSystemBySaveDataAttribute(FsSaveDataSpaceId save_data_space_id, const FsSaveDataAttribute* attr) {
if (hosversionBefore(4,0,0))
return MAKERESULT(Module_Libnx, LibnxError_IncompatSysVer);
const struct {
u8 save_data_space_id;
FsSaveDataAttribute attr;
} in = { (u8)save_data_space_id, *attr };
return _fsObjectDispatchIn(&g_fsSrv, 28, in);
}
Result fsIsExFatSupported(bool* out) {
if (hosversionBefore(2,0,0)) {
*out = false;