CNTFastOpen

Syntax


#include <revolution/cnt.h>

CNTFastOpen(CNTHandle* CntHandle, s32 entrynum, CNTFileinfo* cf);

Arguments

CntHandle Pointer to the CNTHandle structure.
entrynum Entry number of the file to open.
cf Pointer to the file structure.

Return Values

Returns CNT_RESULT_OK when the file opens normally. Returns CNT_RESULT_INVALID if the specified entry number is invalid, or if the specified entry number is a directory.

Description

Opens a file within the content file and initializes the specified CNTFileInfo structure. The difference with CNTOpen is that an entry number is specified rather than a file name. CNTConvertPathToEntrynum must be called first to get the entry number for the file.

See Also

CNTOpen, CNTConvertPathToEntrynum

Revision History

2007/11/20 Standardized the use of the term "content file".
2006/12/04 Added result code descriptions.
2006/10/26 Initial version.


CONFIDENTIAL