Function


nuContPakFileFread

Syntax:
s32 nuContPakFileFread(NUContPakFile *file, s32 offset, s32
size, u8* buf)
Arguments:
*file	Controller Pak structure
offset	Offset position
size	Size of read
*buf	Buffer where read data is stored
Return Value:
Error[
Explanation:

Reads game data from the Controller Pak game note

The "size" bytes of game note game data in the specified "file" starting from the "offset" position is read into "buf." Neither offset nor size needs to be a multiple of 32. When these values are not multiples of 32, the function makes the adjustment internally for the read process.

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.
PFS_ERR_BAD_DATA An attempt was made to read from a game note containing no data.

Reference: nuContPakFileFwrite, nuContPakFileReadWrite, nuContPakFileRead,
nuContPakFileWrite