mirror of
https://github.com/switchbrew/libnx.git
synced 2025-07-06 11:22:15 +02:00
fs: Added fsDeleteSaveDataFileSystemBySaveDataAttribute().
This commit is contained in:
parent
139cb1e99c
commit
76fd03e55a
@ -341,6 +341,7 @@ Result fsDeleteSaveDataFileSystem(u64 application_id);
|
|||||||
Result fsCreateSaveDataFileSystem(const FsSaveDataAttribute* attr, const FsSaveDataCreationInfo* creation_info, const FsSaveDataMetaInfo* meta);
|
Result fsCreateSaveDataFileSystem(const FsSaveDataAttribute* attr, const FsSaveDataCreationInfo* creation_info, const FsSaveDataMetaInfo* meta);
|
||||||
Result fsCreateSaveDataFileSystemBySystemSaveDataId(const FsSaveDataAttribute* attr, const FsSaveDataCreationInfo* creation_info);
|
Result fsCreateSaveDataFileSystemBySystemSaveDataId(const FsSaveDataAttribute* attr, const FsSaveDataCreationInfo* creation_info);
|
||||||
Result fsDeleteSaveDataFileSystemBySaveDataSpaceId(FsSaveDataSpaceId save_data_space_id, u64 saveID); ///< [2.0.0+]
|
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);
|
Result fsIsExFatSupported(bool* out);
|
||||||
|
|
||||||
|
@ -259,6 +259,18 @@ Result fsDeleteSaveDataFileSystemBySaveDataSpaceId(FsSaveDataSpaceId save_data_s
|
|||||||
return _fsObjectDispatchIn(&g_fsSrv, 25, in);
|
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) {
|
Result fsIsExFatSupported(bool* out) {
|
||||||
if (hosversionBefore(2,0,0)) {
|
if (hosversionBefore(2,0,0)) {
|
||||||
*out = false;
|
*out = false;
|
||||||
|
Loading…
Reference in New Issue
Block a user