mirror of
https://github.com/switchbrew/libnx.git
synced 2025-07-03 18:12:14 +02:00
add fw version check and comment
This commit is contained in:
parent
ca1cc2c83c
commit
e9f2ca9a99
@ -316,7 +316,7 @@ Result fsOpenFileSystem(FsFileSystem* out, FsFileSystemType fsType, const char*
|
|||||||
Result fsOpenDataFileSystemByCurrentProcess(FsFileSystem *out);
|
Result fsOpenDataFileSystemByCurrentProcess(FsFileSystem *out);
|
||||||
Result fsOpenFileSystemWithPatch(FsFileSystem* out, u64 id, FsFileSystemType fsType); ///< [2.0.0+], like OpenFileSystemWithId but without content path.
|
Result fsOpenFileSystemWithPatch(FsFileSystem* out, u64 id, FsFileSystemType fsType); ///< [2.0.0+], like OpenFileSystemWithId but without content path.
|
||||||
Result fsOpenFileSystemWithId(FsFileSystem* out, u64 id, FsFileSystemType fsType, const char* contentPath); ///< works on all firmwares, id is ignored on [1.0.0]
|
Result fsOpenFileSystemWithId(FsFileSystem* out, u64 id, FsFileSystemType fsType, const char* contentPath); ///< works on all firmwares, id is ignored on [1.0.0]
|
||||||
Result fsOpenDataFileSystemByProgramId(FsFileSystem *out, u64 program_id);
|
Result fsOpenDataFileSystemByProgramId(FsFileSystem *out, u64 program_id); ///< [3.0.0+]
|
||||||
Result fsOpenBisFileSystem(FsFileSystem* out, FsBisPartitionId partitionId, const char* string);
|
Result fsOpenBisFileSystem(FsFileSystem* out, FsBisPartitionId partitionId, const char* string);
|
||||||
Result fsOpenBisStorage(FsStorage* out, FsBisPartitionId partitionId);
|
Result fsOpenBisStorage(FsStorage* out, FsBisPartitionId partitionId);
|
||||||
|
|
||||||
@ -347,7 +347,7 @@ Result fsOpenContentStorageFileSystem(FsFileSystem* out, FsContentStorageId cont
|
|||||||
Result fsOpenCustomStorageFileSystem(FsFileSystem* out, FsCustomStorageId custom_storage_id); ///< [7.0.0+]
|
Result fsOpenCustomStorageFileSystem(FsFileSystem* out, FsCustomStorageId custom_storage_id); ///< [7.0.0+]
|
||||||
|
|
||||||
Result fsOpenDataStorageByCurrentProcess(FsStorage* out);
|
Result fsOpenDataStorageByCurrentProcess(FsStorage* out);
|
||||||
Result fsOpenDataStorageByProgramId(FsStorage *out, u64 program_id);
|
Result fsOpenDataStorageByProgramId(FsStorage *out, u64 program_id); /// <[3.0.0+]
|
||||||
Result fsOpenDataStorageByDataId(FsStorage* out, u64 dataId, NcmStorageId storageId);
|
Result fsOpenDataStorageByDataId(FsStorage* out, u64 dataId, NcmStorageId storageId);
|
||||||
Result fsOpenPatchDataStorageByCurrentProcess(FsStorage* out);
|
Result fsOpenPatchDataStorageByCurrentProcess(FsStorage* out);
|
||||||
|
|
||||||
|
@ -180,6 +180,9 @@ static Result _fsOpenFileSystemWithId(FsFileSystem* out, u64 id, FsFileSystemTyp
|
|||||||
}
|
}
|
||||||
|
|
||||||
Result fsOpenDataFileSystemByProgramId(FsFileSystem *out, u64 program_id) {
|
Result fsOpenDataFileSystemByProgramId(FsFileSystem *out, u64 program_id) {
|
||||||
|
if (hosversionBefore(3,0,0))
|
||||||
|
return MAKERESULT(Module_Libnx, LibnxError_IncompatSysVer);
|
||||||
|
|
||||||
return _fsObjectDispatchIn(&g_fsSrv, 9, program_id,
|
return _fsObjectDispatchIn(&g_fsSrv, 9, program_id,
|
||||||
.out_num_objects = 1,
|
.out_num_objects = 1,
|
||||||
.out_objects = &out->s,
|
.out_objects = &out->s,
|
||||||
@ -410,6 +413,9 @@ Result fsOpenDataStorageByCurrentProcess(FsStorage* out) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Result fsOpenDataStorageByProgramId(FsStorage *out, u64 program_id) {
|
Result fsOpenDataStorageByProgramId(FsStorage *out, u64 program_id) {
|
||||||
|
if (hosversionBefore(3,0,0))
|
||||||
|
return MAKERESULT(Module_Libnx, LibnxError_IncompatSysVer);
|
||||||
|
|
||||||
return _fsObjectDispatchIn(&g_fsSrv, 201, program_id,
|
return _fsObjectDispatchIn(&g_fsSrv, 201, program_id,
|
||||||
.out_num_objects = 1,
|
.out_num_objects = 1,
|
||||||
.out_objects = &out->s,
|
.out_objects = &out->s,
|
||||||
|
Loading…
Reference in New Issue
Block a user