#include <nnsys/fnd.h>
BOOL NNS_FndMountArchive(NNSFndArchive* archive, const char* arcName, void* arcBinary);
| archive | The pointer to the NNSFndArchive structure. |
| arcName | The name for identifying the archive on the file system. |
| arcBinary | The pointer to the archive binary loaded in memory. |
TRUE if the archive is mounted successfully.
This fuctions mounts to the file system the archive binary specified by arcBinary and loaded in memory. To specify the archive with the Archive Manager's API after mounting, specify the NNSFndArchive structure that was set with 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 (specfied by arcName when the archive was mounted), followed by a colon.
Note that the identifier "rom" is reserved by the system (NITRO-SDK). Further note that the identifier cannot be longer than three characters, and that 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");
......
......
}
2004/05/14 Initial version.
CONFIDENTIAL