MB_RegisterFile


C Specification

#include <nitro/mb.h>

BOOL MB_RegisterFile(const MBGameRegistry *game_reg, const void *buf);
    

Description

This function registers the specified program file on the download program list. The parent can simultaneously download game programs up to MB_MAX_FILE.

Arguments

game_reg Pointer to the MBGameRegistry structure where the program information to register is saved.
buf Pointer to the memory where the extracted segment is saved. Get the segment data with the MB_ReadSegment function. When the function succeeds, the memory specified here is used internally until the MB_UnregisterFile function is called.

Return Values

This function returns TRUE when the program registers correctly. Otherwise, it returns FALSE.

See Also

MBGameRegistry, MB_GetSegmentLength, MB_ReadSegment, MB_UnregisterFile

Revision History

09/09/2004 Added description regarding the MB_UnregisterFile function.
08/09/2004 Initial version