#include <nnsys/fnd.h>
BOOL NNS_FndMountArchive(NNSFndArchive* archive, const char* arcName, void* arcBinary);
archive |
Pointer to the NNSFndArchive structure. |
arcName |
Name for identifying the archive on the file system. |
arcBinary |
Pointer to the archive binary loaded in memory. |
Returns TRUE
if the archive is mounted successfully.
Mounts to the file system the archive binary loaded in the memory specified by arcBinary
. To specify the archive with the Archive Manager's API after mounting, specify the NNSFndArchive
structure specified by archive
.
Once an archive has been mounted to the file system, you can use the file system's API to access the files and directories inside that archive. To specify an archive on the file system, prefix the path name with the identifier (specified by arcName
when the archive was mounted), followed by a colon.
Note that the identifier "rom
" is reserved by the system (TWL-SDK). Note: The identifier cannot be longer than three characters, and there is no distinction between uppercase and lowercase.
extern void* archiveBinary;
NNSFndArchive archive;
if (NNS_FndMountArchive(&archive, "ARC", archiveBinary))
{
FSFile file;
FS_InitFile(&file);
FS_Open(&file, "ARC:/Data/Scene1.dat");
......
......
}
2008/06/20 Corrected by changing the name of NITRO-SDK (from NITRO-SDK to TWL-SDK).
2004/05/14 Initial version.
CONFIDENTIAL