wavelength 1.0.0
Loading...
Searching...
No Matches
cutscene.h File Reference

Go to the source code of this file.

Functions

bool PlayMovieFile (const char *pszPath)
 Play a PSS movie to its end, or until the player skips it.

Function Documentation

◆ PlayMovieFile()

bool PlayMovieFile ( const char * pszPath)

Play a PSS movie to its end, or until the player skips it.

The routine allocates every decoder buffer, binds the IOP heap, plays the stream, and frees the buffers again. A path without a device prefix is read through the host link. A path on the cdrom0 device is upper-cased, takes backslashes for slashes, and gains a ;1 version suffix when it does not have one.

Once the movie has played for a little over five seconds, pressing Cross or Start stops it.

The name is inferred. Metagame plays the intro movie through it.

The PAL build shows the movie on a 512-line PAL display, or on a 448-line NTSC display when bNtsc is set, and can initialise the IOP sound library before the audio starts.

Parameters
pszPathThe movie, with its device prefix.
bNtscNonzero for NTSC output, in the PAL build only.
bInitSoundNonzero to initialise the IOP sound library first, in the PAL build only.
Returns
Whether the movie file opened.
Ghidra address:
NTSC-U/C: 0x001aead0
Ghidra address:
PAL: 0x001b77b0