#pragma once
-#include <string.h>
#include <3ds/types.h>
/*! @file FS.h
u64 fileSize; //!< file size
} FS_dirent;
-/*! Create an FS_path from a type and data pointer.
- *
- * @param[in] type Path type.
- * @param[in] path Pointer to path data.
- *
- * @returns FS_path
- *
- * @sa FS_pathType
- */
-static inline FS_path
-FS_makePath(FS_pathType type,
- const char *path)
-{
- return (FS_path){type, strlen(path)+1, (const u8*)path};
-}
-
Result fsInit(void);
Result fsExit(void);
+FS_path FS_makePath(FS_pathType type, const char *path);
+
Result FSUSER_Initialize(Handle* handle);
Result FSUSER_OpenArchive(Handle* handle, FS_archive* archive);
Result FSUSER_OpenDirectory(Handle* handle, Handle* out, FS_archive archive, FS_path dirLowPath);
// used to determine whether or not we should do FSUSER_Initialize on fsuHandle
Handle __get_handle_from_list(char* name);
+/*! Create an FS_path from a type and data pointer.
+ *
+ * @param[in] type Path type.
+ * @param[in] path Pointer to path data.
+ *
+ * @returns FS_path
+ *
+ * @sa FS_pathType
+ */
+FS_path
+FS_makePath(FS_pathType type,
+ const char *path)
+{
+ return (FS_path){type, strlen(path)+1, (const u8*)path};
+}
+
/*! Initialize FS service
*
* @returns error