30.3 Programming Techniques for MPAL Format

Techniques for programming for the MPAL format will be described here. MPAL is the television system format for Brazil. If the country the software was designed for is America, make the software compatible with not only NTSC, but MPAL as well. See Section 30.1.3.1 "Supported Television System Formats" for details on system formats.

UP


30.3.1 Initialization Procedure

MPAL and NTSC will automatically be identified by osTvType, and the video interface will be set to MPAL or NTSC. There are no particular requirements as to the timing for this in the program. See Programming Cautions, Section 5 "Video Mode" for details.

Example

if ( osTvType == 1 ){
    osViSetMode( &osViModeNtscLpn1 );
}
else if ( osTvType ==2 ){
    osViSetMode( &osViModeMpalLpn1 );
}
else{
    while(1);	/* Stop application */
}

Note: In this example, when the system format of the country for which the software was designed for is not MPAL or NTSC, the program goes into an infinite loop and the game will not start. Also, please note that the argument for osViSetMode will differ depending on the mode being used.

UP