mirror of
https://github.com/switchbrew/libnx.git
synced 2025-07-05 10:52:15 +02:00
Add usage comment, sysver check
This commit is contained in:
parent
79e6334c8d
commit
0d0c080908
@ -203,9 +203,12 @@ Result fsFsGetFreeSpace(FsFileSystem* fs, const char* path, u64* out);
|
||||
Result fsFsGetTotalSpace(FsFileSystem* fs, const char* path, u64* out);
|
||||
Result fsFsCleanDirectoryRecursively(FsFileSystem* fs, const char* path);
|
||||
Result fsFsQueryEntry(FsFileSystem* fs, void *out, size_t out_size, const void *in, size_t in_size, const char* path, FsFileSystemQueryType query_type);
|
||||
Result fsFsSetArchiveBit(FsFileSystem* fs, const char *path);
|
||||
void fsFsClose(FsFileSystem* fs);
|
||||
|
||||
/// Uses fsFsQueryEntry to set the archive bit on the specified absolute directory path.
|
||||
/// This will cause HOS to treat the directory as though it is a file containing the directory's concatenated contents.
|
||||
Result fsFsSetArchiveBit(FsFileSystem* fs, const char *path);
|
||||
|
||||
// IFile
|
||||
Result fsFileRead(FsFile* f, u64 off, void* buf, size_t len, size_t* out);
|
||||
Result fsFileWrite(FsFile* f, u64 off, const void* buf, size_t len);
|
||||
|
@ -1008,6 +1008,9 @@ Result fsFsCleanDirectoryRecursively(FsFileSystem* fs, const char* path) {
|
||||
}
|
||||
|
||||
Result fsFsQueryEntry(FsFileSystem* fs, void *out, size_t out_size, const void *in, size_t in_size, const char* path, FsFileSystemQueryType query_type) {
|
||||
if (!kernelAbove400())
|
||||
return MAKERESULT(Module_Libnx, LibnxError_IncompatSysVer);
|
||||
|
||||
char send_path[FS_MAX_PATH] = {0};
|
||||
strncpy(send_path, path, sizeof(send_path)-1);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user