Function


nuContPakFileNum

Syntax:
s32 nuContPakFileNum(NUContPakFile *file, s32 *max_files, s32
*used_files)
Arguments:
*file		Controller Pak structure
*max_files	Maximum number of notes in Pak
*used_files	Number of notes used in Pak
Return Value:
Error
Explanation:

Gets the maximum number of notes and the number of notes being used in the Controller Pak

For "file," the device must be opened by the nuContPakOpen function.

The maximum number of notes is returned to max_files.

The number of files being used is returned to used_files.

The value returned by the osPfsNumFiles function is stored in file.error.

Errors:

PFS_ERR_NOPACK

Nothing is inserted in the specified Controller.

PFS_ERR_NEW_PACK

The Controller Pak may have been changed. Please perform the Open process again.

PFS_ERR_INCONSISTENT

There is an inconsistency in the file system management area.

PFS_ERR_CONTRFAIL

Data transfer with Controller has failed.

PFS_ERR_INVALID

Invalid parameter or the game note does not exist.


Reference: nuContPakOpen