#include <revolution/nwc24.h>
NWC24Err NWC24CreateDlVf( NWC24DlTask* taskPublic, u32 size );
Creates a VF archive (Download Box) for file storage. A file of size bytes is created below the Home directory, so when creating a new file use NANDCheck beforehand.
Note: The file size of a VF archive includes the FAT region. Consequently, the region available to the user (the maximum file size that can be downloaded) will be approximately 10 KB less.
taskPublic |
Pointer to the download task. |
size |
Size of the VF archive. |
NWC24_OK: Ended normally.
NWC24_ERR_LIB_NOT_OPENED: The library has not been opened.
NWC24_ERR_PROTECTED: The download task is write protected.
NWC24_ERR_INVALID_VALUE: The value of taskPublic is NULL, the download task is invalid, or the specified size was not sufficiently large.
NWC24_ERR_FILE_*: Internal file operation error.
NWC24_ERR_INTERNAL_VF: The VF library called internally returned an error.
NWC24_ERR_NAND_CORRUPT: NAND_RESULT_CORRUPT occurred internally.
NWC24_ERR_FATAL: A fatal error occurred.
2008/03/10 Added a note on FAT overhead.
2006/12/05 Initial version.
CONFIDENTIAL