Wii Console NAND Memory (NAND) API Function List

Initialization

NANDInit Initializes the NAND library.

File Access

NANDCreate Creates a file.
NANDCreateAsync Asynchronously creates a file.
NANDOpen Opens a file.
NANDOpenAsync Asynchronously opens a file.
NANDClose Closes a file.
NANDCloseAsync Asynchronously closes a file.
NANDRead Reads data from a file.
NANDReadAsync Asynchronously reads data from a file.
NANDWrite Writes data to a file.
NANDWriteAsync Asynchronously writes data to a file.
NANDSeek Performs a file seek.
NANDSeekAsync Asynchronously performs a file seek.
NANDTell Returns the current position of the file.
NANDTellAsync Asynchronously returns the current position of a file.
NANDGetLength Gets the file size.
NANDGetLengthAsync Asynchronously gets the file size.
NANDSimpleSafeOpen Opens a file while guaranteeing the atomicity of file updates.
NANDSimpleSafeOpenAsync Asynchronously opens a file while guaranteeing the atomicity of file updates.
NANDSimpleSafeClose Closes a file while guaranteeing the atomicity of file updates.
NANDSimpleSafeCloseAsync Asynchronously closes a file while guaranteeing the atomicity of file updates.
NANDSimpleSafeCancel Deallocates the resources that were in use when a NANDSimpleSafe-related function terminated with an error.
NANDSimpleSafeCancelAsync Asynchronously deallocates the resources that were in use when a NANDSimpleSafe-related function terminated with an error.
NANDSafeOpen Opens a file while guaranteeing the atomicity of file updates (not recommended).
NANDSafeOpenAsync Asynchronously opens a file while guaranteeing the atomicity of file updates (not recommended).
NANDSafeClose Closes a file while guaranteeing the atomicity of file updates (not recommended).
NANDSafeCloseAsync Asynchronously closes a file while guaranteeing the atomicity of file updates (not recommended).

Directory Access

NANDReadDir Gets a list of file or directory names stored in the directory.
NANDReadDirAsync Asynchronously gets a list of file or directory names stored in the directory.
NANDCreateDir Creates a directory.
NANDCreateDirAsync Asynchronously creates a directory.
NANDChangeDir Changes the current directory.
NANDChangeDirAsync Asynchronously changes the current directory.
NANDGetCurrentDir Gets the current directory.
NANDGetHomeDir Gets the home directory.

File or Directory Access

NANDDelete Deletes a file or directory.
NANDDeleteAsync Asynchronously deletes a file or directory.
NANDMove Moves a file or directory.
NANDMoveAsync Asynchronously moves a file or directory.
NANDSetStatus Configures the status information of a file or directory.
NANDSetStatusAsync Asynchronously configures the status information of a file or directory.
NANDGetStatus Gets the status information of a file or directory.
NANDGetStatusAsync Asynchronously gets the status information of a file or directory.
NANDGetType Checks whether the specified path name represents a file or a directory.
NANDGetTypeAsync Asynchronously checks whether the specified path name is for a file or a directory.

File System Access

NANDFreeBlocks Gets the amount of available space in the file system and the number of empty inodes.
NANDFreeBlocksAsync Asynchronously gets the the amount of available space in the file system and the number of empty inodes.
NANDCheck Checks whether new files or directories can be created.
NANDCheckAsync Asynchronously checks whether new files or directories can be created.
NANDGetAvailableArea Gets the number of FS blocks and inodes available for use by the application.
NANDGetAvailableAreaAsync Asynchronously gets the number of FS blocks and inodes available for use by the application.
NANDGetTmpDirUsage Gets the number of FS blocks and inodes used under the /tmp directory.
NANDGetTmpDirUsageAsync Asynchronously gets the number of FS blocks and inodes used under the /tmp directory.
NANDGetHomeDirUsage Gets the number of FS blocks and inodes used under the home directory.
NANDGetHomeDirUsageAsync Asynchronously gets the number of FS blocks and inodes used under the home directory.

User Data Access

NANDSetUserData Sets user data in a command block.
NANDGetUserData Gets user data from a command block.

Banner Files

NANDInitBanner Initializes the banner structure.
NANDGetIconSpeed Gets the amount of time that the icon in the banner is displayed.
NANDSetIconSpeed Sets the amount of time that the icon in the banner is displayed.

Types and Structures

NANDFileInfo File structure in the NAND library.
NANDStatus Status structure that stores owner ID, groupID, attributes, and permissions.
NANDCommandBlock Command block structure used inside the library to process asynchronous function requests.
NANDBanner Banner structure that stores a save file's banner information.



CONFIDENTIAL