N64® Functions Menu

al - Audio Library Functions
gDP - DP GBI Macros
gdSP - General GBI Macros
gSP - SP GBI Macros
gt - Turbo Microcode RDP
gu - Graphics Utilities
Math - Math Functions
nuSys - NuSystem
os - N64 Operating System
sp - Sprite Library Functions
uh - Host to Target IO
64DD - N64 Disk Drive

Nintendo® Confidential

   

nuContPakFileState

Format
nuContPakFileState(NUContPakFile* file, OSPfsState* state)

Arguments
  • file is the pointer to the Controller Pak structure
  • state is the pointer to the OSPfsState structure
Returned Value
none

What This Function Does
It gets the Controller Pak game note information from the specified game note in the Controller Pak and stores it in the location pointed to by state. The file argument specifies a Controller Pak structure in a game note that was opened by the nuContPakFileOpen function in a device opened by the nuContPackOpen function. To fetch all of the information from all of the game notes in the Controller Pak, call the nuContPakFileState function 16 times with file.file_no specified in order from 0 to 15. The OSPfsState structure pointed to by state has the following contents:
typedef struct {
u32  file_size;  // note size (in bytes)
u32  game_code;  // game code
u16  company_code;  // company code
char  ext_name[4];  // note extension
char  game_name[16];  // note name
}
The value returned by the osPfsFileState function is set in file.error.

See Also
nuContPakOpen
nuContPakFileOpen
nuContPakOpenJis



Nintendo® Confidential

Warning: all information in this document is confidential and covered by a non-disclosure agreement. You are responsible for keeping this information confidential and protected. Nintendo will vigorously enforce this responsibility.


Copyright © 1998
Nintendo of America Inc. All rights reserved
Nintendo and N64 are registered trademarks of Nintendo
Last updated January 1998