coastline 0.0.4
Loading...
Searching...
No Matches
splash.h File Reference

The splash screens and the controller check at start-up. More...

#include <PR/gbi.h>
#include <PR/ultratypes.h>
#include "common/model.h"
#include "common/texrect.h"
Include dependency graph for splash.h:

Go to the source code of this file.

Macros

#define CONTROLLER_WARNING_NO_CONTROLLER   0
#define CONTROLLER_WARNING_NO_PAK   1
#define CONTROLLER_WARNING_FOREIGN_PAK   2

Functions

void AnimateSplashModels (void)
 Animate the models of the splash screens when the frame before is drawn.
void ProcessSplashScreens (void)
 Run one frame of the splash screens.
void ProcessControllerCheck (void)
 Run one frame of the warning about the controller or the Controller Pak.

Variables

s32 g_bSplashStarted
 Whether the splash screens have loaded their models and sounds.
s32 g_bSplashFadingOut
 Whether the splash screens fade out.
Ambient g_SplashAmbientLight
 The lights of the logos.
Texture g_SplashTitleLogoTexture
 The picture of the title the Japanese release shows in place of the models of the title.
u16 g_awSplashTitlePalette [256]
 The palette of the picture of the title, read from the cartridge.
u8 g_bControllerWarningType
 What the controller check warns of, as the CONTROLLER_WARNING_ values: no controller, no Controller Pak, or a Controller Pak with the data of another game.
u8 g_bControllerCheckStarted
 Whether the controller check has loaded its pictures.
Model * g_pSplashFirstLogo
 The logos, in the order they show.
Model * g_pSplashTitleModelA
 The parts of the title, in the order they show.
f32 g_fSplashTime
 The time since the splash screens started, in seconds.
u32 g_dwSplashSoundALength
 The sound a logo makes as it flies in and leaves, and its length.
u32 g_dwSplashSoundBLength
 The second sound a logo makes as it flies in, and its length.
s32 g_dwSplashFirstLogoVoice
 For each logo: the channel of the sound it makes as it leaves, how far its first sound has gone (1 once it played as the logo flew in, 2 once it plays as the logo leaves) and whether its second sound played.
s32 g_bSplashSkipped
 Whether a player skipped the splash screens, which then lead to the main menu.

Detailed Description

The splash screens and the controller check at start-up.

Macro Definition Documentation

◆ CONTROLLER_WARNING_NO_CONTROLLER

#define CONTROLLER_WARNING_NO_CONTROLLER   0

No controller is plugged in.

◆ CONTROLLER_WARNING_NO_PAK

#define CONTROLLER_WARNING_NO_PAK   1

The controller has no Controller Pak.

◆ CONTROLLER_WARNING_FOREIGN_PAK

#define CONTROLLER_WARNING_FOREIGN_PAK   2

The Controller Pak has no notes of this game.

Function Documentation

◆ AnimateSplashModels()

void AnimateSplashModels ( void )

Animate the models of the splash screens when the frame before is drawn.

Ghidra address:
USA: 0x80206830
Ghidra address:
Asia: 0x80206830
Ghidra address:
EUR: 0x802069f0
Ghidra address:
JPN: 0x80206a90

◆ ProcessSplashScreens()

void ProcessSplashScreens ( void )

Run one frame of the splash screens.

Ghidra address:
USA: 0x8020686c
Ghidra address:
Asia: 0x8020686C
Ghidra address:
EUR: 0x80206a2c
Ghidra address:
JPN: 0x80206ab4

◆ ProcessControllerCheck()

void ProcessControllerCheck ( void )

Run one frame of the warning about the controller or the Controller Pak.

Ghidra address:
USA: 0x80208570
Ghidra address:
Asia: 0x80208100
Ghidra address:
EUR: 0x80208310
Ghidra address:
JPN: 0x80207f30

Variable Documentation

◆ g_bSplashStarted

s32 g_bSplashStarted
extern

Whether the splash screens have loaded their models and sounds.

Ghidra address:
USA: 0x80270810
Ghidra address:
Asia: 0x80270360
Ghidra address:
EUR: 0x802727f0
Ghidra address:
JPN: 0x802722b4

◆ g_bSplashFadingOut

s32 g_bSplashFadingOut
extern

Whether the splash screens fade out.

Ghidra address:
USA: 0x8027081c
Ghidra address:
Asia: 0x8027036C
Ghidra address:
EUR: 0x802727fc
Ghidra address:
JPN: 0x802722c0

◆ g_SplashAmbientLight

Ambient g_SplashAmbientLight
extern

The lights of the logos.

Ghidra address:
USA: 0x80270820
Ghidra address:
Asia: 0x80270370
Ghidra address:
EUR: 0x80272800
Ghidra address:
JPN: 0x802722c8

◆ g_SplashTitleLogoTexture

Texture g_SplashTitleLogoTexture
extern

The picture of the title the Japanese release shows in place of the models of the title.

Ghidra address:
JPN: 0x802722a0

◆ g_awSplashTitlePalette

u16 g_awSplashTitlePalette[256]
extern

The palette of the picture of the title, read from the cartridge.

Ghidra address:
JPN: 0x803165b8

◆ g_bControllerWarningType

u8 g_bControllerWarningType
extern

What the controller check warns of, as the CONTROLLER_WARNING_ values: no controller, no Controller Pak, or a Controller Pak with the data of another game.

Ghidra address:
USA: 0x80270840
Ghidra address:
Asia: 0x80270390
Ghidra address:
EUR: 0x80272820
Ghidra address:
JPN: 0x802722e0

◆ g_bControllerCheckStarted

u8 g_bControllerCheckStarted
extern

Whether the controller check has loaded its pictures.

Ghidra address:
USA: 0x80270844
Ghidra address:
Asia: 0x80270394
Ghidra address:
EUR: 0x80272824
Ghidra address:
JPN: 0x802722e4

◆ g_pSplashFirstLogo

Model* g_pSplashFirstLogo
extern

The logos, in the order they show.

Ghidra address:
USA: 0x80315e80
Ghidra address:
Asia: 0x80315940
Ghidra address:
EUR: 0x80317b70
Ghidra address:
JPN: 0x803165b0

◆ g_pSplashTitleModelA

Model* g_pSplashTitleModelA
extern

The parts of the title, in the order they show.

Ghidra address:
USA: 0x80315e8c
Ghidra address:
Asia: 0x80315948
Ghidra address:
EUR: 0x80317b78

◆ g_fSplashTime

f32 g_fSplashTime
extern

The time since the splash screens started, in seconds.

Ghidra address:
USA: 0x80315e9c
Ghidra address:
Asia: 0x80315958
Ghidra address:
EUR: 0x80317b88
Ghidra address:
JPN: 0x803167b8

◆ g_dwSplashSoundALength

u32 g_dwSplashSoundALength
extern

The sound a logo makes as it flies in and leaves, and its length.

Ghidra address:
USA: 0x80315ea0
Ghidra address:
Asia: 0x8031595C
Ghidra address:
EUR: 0x80317b8c
Ghidra address:
JPN: 0x803167bc

◆ g_dwSplashSoundBLength

u32 g_dwSplashSoundBLength
extern

The second sound a logo makes as it flies in, and its length.

Ghidra address:
USA: 0x80315ea8
Ghidra address:
Asia: 0x80315964
Ghidra address:
EUR: 0x80317b94
Ghidra address:
JPN: 0x803167c4

◆ g_dwSplashFirstLogoVoice

s32 g_dwSplashFirstLogoVoice
extern

For each logo: the channel of the sound it makes as it leaves, how far its first sound has gone (1 once it played as the logo flew in, 2 once it plays as the logo leaves) and whether its second sound played.

Ghidra address:
USA: 0x80315eb0
Ghidra address:
Asia: 0x8031596C
Ghidra address:
EUR: 0x80317b9c
Ghidra address:
JPN: 0x803167cc

◆ g_bSplashSkipped

s32 g_bSplashSkipped
extern

Whether a player skipped the splash screens, which then lead to the main menu.

Ghidra address:
USA: 0x80315ed4
Ghidra address:
Asia: 0x80315984
Ghidra address:
EUR: 0x80317bb4
Ghidra address:
JPN: 0x803167e4