mirror of
https://github.com/switchbrew/libnx.git
synced 2025-06-21 20:42:44 +02:00
fs: add IsSignedSystemPartitionOnSdCardValid (#381)
This commit is contained in:
parent
1b1620f7bb
commit
c3b0b63471
@ -345,6 +345,8 @@ Result fsOpenDataStorageByDataId(FsStorage* out, u64 dataId, NcmStorageId storag
|
|||||||
Result fsOpenDeviceOperator(FsDeviceOperator* out);
|
Result fsOpenDeviceOperator(FsDeviceOperator* out);
|
||||||
Result fsOpenSdCardDetectionEventNotifier(FsEventNotifier* out);
|
Result fsOpenSdCardDetectionEventNotifier(FsEventNotifier* out);
|
||||||
|
|
||||||
|
Result fsIsSignedSystemPartitionOnSdCardValid(bool *out);
|
||||||
|
|
||||||
/// Retrieves the rights id corresponding to the content path. Only available on [2.0.0+].
|
/// Retrieves the rights id corresponding to the content path. Only available on [2.0.0+].
|
||||||
Result fsGetRightsIdByPath(const char* path, FsRightsId* out_rights_id);
|
Result fsGetRightsIdByPath(const char* path, FsRightsId* out_rights_id);
|
||||||
|
|
||||||
|
@ -402,6 +402,13 @@ Result fsOpenSdCardDetectionEventNotifier(FsEventNotifier* out) {
|
|||||||
return _fsCmdGetSession(&g_fsSrv, &out->s, 500);
|
return _fsCmdGetSession(&g_fsSrv, &out->s, 500);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Result fsIsSignedSystemPartitionOnSdCardValid(bool *out) {
|
||||||
|
if (!hosversionBetween(4, 8))
|
||||||
|
return MAKERESULT(Module_Libnx, LibnxError_IncompatSysVer);
|
||||||
|
|
||||||
|
return _fsCmdNoInOutBool(&g_fsSrv, out, 640);
|
||||||
|
}
|
||||||
|
|
||||||
Result fsGetRightsIdByPath(const char* path, FsRightsId* out_rights_id) {
|
Result fsGetRightsIdByPath(const char* path, FsRightsId* out_rights_id) {
|
||||||
if (hosversionBefore(2,0,0))
|
if (hosversionBefore(2,0,0))
|
||||||
return MAKERESULT(Module_Libnx, LibnxError_IncompatSysVer);
|
return MAKERESULT(Module_Libnx, LibnxError_IncompatSysVer);
|
||||||
|
Loading…
Reference in New Issue
Block a user