#include <nnsys/fnd.h>
void* NNS_FndGetArchiveFileByIndex(NNSFndArchive& archive, u32 index);
archive | The pointer to the NNSFndArchive structure. |
index | The index value of the file. |
The address where the file is stored. If the file cannot be found, the function returns NULL.
This function gets the storage address of the file with the index value specified by index
. The pointer obtained with this function points to the content of the archive binary loaded in memory. To copy from this archive binary, read it using the file system's API.
extern void* archiveBinary;
NNSFndArchive archive;
if (NNS_FndMountArchive(&archive, "ARC", archiveBinary))
{
void* data = NNS_FndGetArchiveFileByName(&archive, 10);
......
......
}
NNS_FndGetArchiveFileByName, NNS_FndOpenArchiveFileByIndex
2004/05/14 Initial version.
CONFIDENTIAL