Super Mario 64 Source
A Super Mario 64 decompilation, brought to you by a bunch of clever folks.
Functions | Variables
star_select.c File Reference
#include <ultra64.h>
#include "sm64.h"
#include "game.h"
#include "memory.h"
#include "area.h"
#include "save_file.h"
#include "object_helpers.h"
#include "engine/behavior_script.h"
#include "ingame_menu.h"
#include "text_strings.h"
#include "audio/external.h"
#include "level_update.h"
#include "segment2.h"
#include "segment7.h"
#include "star_select.h"
#include "model_ids.h"
#include "object_list_processor.h"

Functions

void BehStarActSelectorLoop (void)
 
void Show100CoinStar (u8 stars)
 
void BehActSelectorInit (void)
 
void BehActSelectorLoop (void)
 
static void ShowCourseNumber (void)
 
static void ShowActSelectorMenu (void)
 
GfxGeo18_80177518 (s16 run, UNUSED struct GraphNode *node)
 
void LevelProc_80177560 (UNUSED s32 a, UNUSED s32 b)
 
int LevelProc_80177610 (UNUSED s32 a, UNUSED s32 b)
 

Variables

static struct ObjectsStarSelectIcons [8]
 
static s8 sCurrentMission
 
static u8 sObtainedStars
 
static s8 sVisibleStars
 
static u8 sDefaultSelectedAct
 
u8 bhvStarInActSelector []
 
static s8 sSelectedAct = 0
 
static s8 sSelectedStarIndex = 0
 
static s32 sActSelectorMenuTimer = 0
 

Function Documentation

◆ BehActSelectorInit()

void BehActSelectorInit ( void  )

Useless, since sDefaultSelectedAct has already been set in this scenario by the code that shows the next uncollected star.

◆ BehActSelectorLoop()

void BehActSelectorLoop ( void  )

◆ BehStarActSelectorLoop()

void BehStarActSelectorLoop ( void  )

◆ Geo18_80177518()

Gfx* Geo18_80177518 ( s16  run,
UNUSED struct GraphNode node 
)
Bug:
Another geo function missing the third param. Harmless in practice due to o32 convention.

◆ LevelProc_80177560()

void LevelProc_80177560 ( UNUSED s32  a,
UNUSED s32  b 
)

◆ LevelProc_80177610()

int LevelProc_80177610 ( UNUSED s32  a,
UNUSED s32  b 
)

◆ Show100CoinStar()

void Show100CoinStar ( u8  stars)

◆ ShowActSelectorMenu()

static void ShowActSelectorMenu ( void  )
static

◆ ShowCourseNumber()

static void ShowCourseNumber ( void  )
static

Variable Documentation

◆ bhvStarInActSelector

u8 bhvStarInActSelector[]

◆ sActSelectorMenuTimer

s32 sActSelectorMenuTimer = 0
static

◆ sCurrentMission

s8 sCurrentMission
static

◆ sDefaultSelectedAct

u8 sDefaultSelectedAct
static

◆ sObtainedStars

u8 sObtainedStars
static

◆ sSelectedAct

s8 sSelectedAct = 0
static

◆ sSelectedStarIndex

s8 sSelectedStarIndex = 0
static

◆ sStarSelectIcons

struct Object* sStarSelectIcons[8]
static

◆ sVisibleStars

s8 sVisibleStars
static