19 #define FS_OPEN_READ (1<<0)
21 #define FS_OPEN_WRITE (1<<1)
23 #define FS_OPEN_CREATE (1<<2)
35 #define FS_ATTRIBUTE_NONE (0x00000000)
37 #define FS_ATTRIBUTE_READONLY (0x00000001)
39 #define FS_ATTRIBUTE_ARCHIVE (0x00000100)
41 #define FS_ATTRIBUTE_HIDDEN (0x00010000)
43 #define FS_ATTRIBUTE_DIRECTORY (0x01000000)
54 #define FS_WRITE_NOFLUSH (0x00000000)
56 #define FS_WRITE_FLUSH (0x00010001)
144 return (
FS_path){type, strlen(path)+1, (
const u8*)path};
Result FSUSER_IsSdmcWritable(Handle *handle, u32 *writable)
Result FSDIR_Close(Handle handle)
Result FSFILE_SetAttributes(Handle handle, u32 attributes)
FS_pathType type
FS path type.
Result FSUSER_OpenArchive(Handle *handle, FS_archive *archive)
Result FSUSER_RenameFile(Handle *handle, FS_archive srcArchive, FS_path srcFileLowPath, FS_archive destArchive, FS_path destFileLowPath)
Specifies an invalid path.
Result FSDIR_Read(Handle handle, u32 *entriesRead, u32 entrycount, FS_dirent *buffer)
Result FSUSER_DeleteFile(Handle *handle, FS_archive archive, FS_path fileLowPath)
Result FSFILE_Flush(Handle handle)
Result FSFILE_Close(Handle handle)
Result FSFILE_SetSize(Handle handle, u64 size)
Result FSUSER_OpenDirectory(Handle *handle, Handle *out, FS_archive archive, FS_path dirLowPath)
Result FSFILE_GetSize(Handle handle, u64 *size)
Result FSUSER_CloseArchive(Handle *handle, FS_archive *archive)
Specifies a text based path with a 16-bit short per character.
Result FSFILE_Write(Handle handle, u32 *bytesWritten, u64 offset, const void *buffer, u32 size, u32 flushFlags)
Specifies a binary path, which is non-text based.
Result FSUSER_OpenFileDirectly(Handle *handle, Handle *out, FS_archive archive, FS_path fileLowPath, u32 openflags, u32 attributes)
Result FSUSER_IsSdmcDetected(Handle *handle, u32 *detected)
Result FSUSER_GetSdmcArchiveResource(Handle *handle, u32 *sectorSize, u32 *clusterSize, u32 *numClusters, u32 *freeClusters)
Result FSUSER_OpenFile(Handle *handle, Handle *out, FS_archive archive, FS_path fileLowPath, u32 openflags, u32 attributes)
Result FSFILE_Read(Handle handle, u32 *bytesRead, u64 offset, void *buffer, u32 size)
Result FSFILE_GetAttributes(Handle handle, u32 *attributes)
u8 isReadOnly
read-only bit
const u8 * data
Pointer to FS path data.
u8 isDirectory
directory bit
Result FSUSER_CreateDirectory(Handle *handle, FS_archive archive, FS_path dirLowPath)
Specifies a text based path with a 8-bit byte per character.
Handle handleLow
High word of handle.
Handle handleHigh
Low word of handle.
Result FSUSER_RenameDirectory(Handle *handle, FS_archive srcArchive, FS_path srcDirLowPath, FS_archive destArchive, FS_path destDirLowPath)
Result FSUSER_Initialize(Handle *handle)
Result FSUSER_DeleteDirectory(Handle *handle, FS_archive archive, FS_path dirLowPath)