Mario Kart 64
Loading...
Searching...
No Matches
replays.c File Reference
#include <ultra64.h>
#include <macros.h>
#include <common_structs.h>
#include <defines.h>
#include <decode.h>
#include <mk64.h>
#include <course.h>
#include "main.h"
#include "code_800029B0.h"
#include "buffers.h"
#include "save.h"
#include "replays.h"
#include "code_8006E9C0.h"
#include "menu_items.h"
#include "code_80057C60.h"
#include "kart_dma.h"
Include dependency graph for replays.c:

Macros

#define GHOST_UNLOCK_MARIO   9000
 
#define GHOST_UNLOCK_ROYAL   16000
 
#define GHOST_UNLOCK_LUIGI   11200
 
#define REPLAY_MASK   (ALL_BUTTONS ^ (A_BUTTON | B_BUTTON | Z_TRIG | R_TRIG | L_TRIG))
 

Functions

s32 mio0encode (s32 input, s32, s32)
 
s32 func_80040174 (void *, s32, s32)
 
void load_course_ghost (void)
 
void load_post_tt_replay (void)
 
void load_player_ghost (void)
 
void set_staff_ghost (void)
 
s32 func_800051C4 (void)
 
void func_8000522C (void)
 
void func_800052A4 (void)
 
void func_80005310 (void)
 
void process_post_TT_replay (void)
 
void process_course_ghost_replay (void)
 
void process_player_ghost_replay (void)
 
void save_player_replay (void)
 
void func_80005AE8 (Player *ply)
 
void func_80005B18 (void)
 
void func_80005E6C (void)
 
void replays_loop (void)
 

Variables

u8D_80162D80
 
s16 D_80162D84
 
s16 D_80162D86
 
static u16 sPlayerGhostButtonsPrev
 
static u32 sPlayerGhostFramesRemaining
 
static s16 sPlayerGhostReplayIdx
 
static u32sPlayerGhostReplay
 
static u16 sButtonsPrevCourseGhost
 
static u32 sCourseGhostFramesRemaining
 
static s16 sCourseGhostReplayIdx
 
static u32sCourseGhostReplay
 
static u16 sPostTTButtonsPrev
 
static s32 sPostTTFramesRemaining
 
static s16 sPostTTReplayIdx
 
static u32sPostTTReplay
 
static s16 sPlayerInputIdx
 
static u32sPlayerInputs
 
static u16 sPrevCourseId
 
u32 D_80162DC4
 
s32 D_80162DC8
 
s32 D_80162DCC
 
s32 D_80162DD0
 
u16 bPlayerGhostDisabled
 
u16 bCourseGhostDisabled
 
u16 D_80162DD8
 
s32 D_80162DDC
 
s32 D_80162DE0
 
s32 D_80162DE4
 
s32 D_80162DE8
 
static UNUSED s32 sUnusedReplayCounter
 
s32 gPauseTriggered
 
static UNUSED s32 bUnusedCourseGhostDisabled
 
s32 gPostTTReplayCannotSave
 
s32 D_80162DFC
 
s32 D_80162E00
 
u32D_800DC710 = (u32*) &D_802BFB80.arraySize8[0][2][3]
 
u32D_800DC714 = (u32*) &D_802BFB80.arraySize8[1][1][3]
 
s32 gLapCountByPlayerId []
 
StaffGhostd_mario_raceway_staff_ghost
 
StaffGhostd_royal_raceway_staff_ghost
 
StaffGhostd_luigi_raceway_staff_ghost
 

Macro Definition Documentation

◆ GHOST_UNLOCK_LUIGI

#define GHOST_UNLOCK_LUIGI   11200

◆ GHOST_UNLOCK_MARIO

#define GHOST_UNLOCK_MARIO   9000

Activates staff ghost if time trial lap time is low enough

◆ GHOST_UNLOCK_ROYAL

#define GHOST_UNLOCK_ROYAL   16000

◆ REPLAY_MASK

#define REPLAY_MASK   (ALL_BUTTONS ^ (A_BUTTON | B_BUTTON | Z_TRIG | R_TRIG | L_TRIG))

Function Documentation

◆ func_800051C4()

s32 func_800051C4 ( void )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ func_8000522C()

void func_8000522C ( void )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ func_800052A4()

void func_800052A4 ( void )
Here is the caller graph for this function:

◆ func_80005310()

void func_80005310 ( void )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ func_80005AE8()

void func_80005AE8 ( Player * ply)
Here is the caller graph for this function:

◆ func_80005B18()

void func_80005B18 ( void )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ func_80005E6C()

void func_80005E6C ( void )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ func_80040174()

s32 func_80040174 ( void * ,
s32 ,
s32  )
extern
Here is the caller graph for this function:

◆ load_course_ghost()

void load_course_ghost ( void )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ load_player_ghost()

void load_player_ghost ( void )
Here is the caller graph for this function:

◆ load_post_tt_replay()

void load_post_tt_replay ( void )
Here is the caller graph for this function:

◆ mio0encode()

s32 mio0encode ( s32 input,
s32 ,
s32  )
extern
Here is the caller graph for this function:

◆ process_course_ghost_replay()

void process_course_ghost_replay ( void )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ process_player_ghost_replay()

void process_player_ghost_replay ( void )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ process_post_TT_replay()

void process_post_TT_replay ( void )
Here is the caller graph for this function:

◆ replays_loop()

void replays_loop ( void )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ save_player_replay()

void save_player_replay ( void )
Here is the caller graph for this function:

◆ set_staff_ghost()

void set_staff_ghost ( void )
Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ bCourseGhostDisabled

u16 bCourseGhostDisabled

◆ bPlayerGhostDisabled

u16 bPlayerGhostDisabled

◆ bUnusedCourseGhostDisabled

UNUSED s32 bUnusedCourseGhostDisabled
static

◆ D_800DC710

u32* D_800DC710 = (u32*) &D_802BFB80.arraySize8[0][2][3]

◆ D_800DC714

u32* D_800DC714 = (u32*) &D_802BFB80.arraySize8[1][1][3]

◆ D_80162D80

u8* D_80162D80

◆ D_80162D84

s16 D_80162D84

◆ D_80162D86

s16 D_80162D86

◆ D_80162DC4

u32 D_80162DC4

◆ D_80162DC8

s32 D_80162DC8

◆ D_80162DCC

s32 D_80162DCC

◆ D_80162DD0

s32 D_80162DD0

◆ D_80162DD8

u16 D_80162DD8

◆ D_80162DDC

s32 D_80162DDC

◆ D_80162DE0

s32 D_80162DE0

◆ D_80162DE4

s32 D_80162DE4

◆ D_80162DE8

s32 D_80162DE8

◆ D_80162DFC

s32 D_80162DFC

◆ D_80162E00

s32 D_80162E00

◆ d_luigi_raceway_staff_ghost

StaffGhost* d_luigi_raceway_staff_ghost
extern

◆ d_mario_raceway_staff_ghost

StaffGhost* d_mario_raceway_staff_ghost
extern

◆ d_royal_raceway_staff_ghost

StaffGhost* d_royal_raceway_staff_ghost
extern

◆ gLapCountByPlayerId

s32 gLapCountByPlayerId[]
extern

◆ gPauseTriggered

s32 gPauseTriggered

◆ gPostTTReplayCannotSave

s32 gPostTTReplayCannotSave

◆ sButtonsPrevCourseGhost

u16 sButtonsPrevCourseGhost
static

◆ sCourseGhostFramesRemaining

u32 sCourseGhostFramesRemaining
static

◆ sCourseGhostReplay

u32* sCourseGhostReplay
static

◆ sCourseGhostReplayIdx

s16 sCourseGhostReplayIdx
static

◆ sPlayerGhostButtonsPrev

u16 sPlayerGhostButtonsPrev
static

◆ sPlayerGhostFramesRemaining

u32 sPlayerGhostFramesRemaining
static

◆ sPlayerGhostReplay

u32* sPlayerGhostReplay
static

◆ sPlayerGhostReplayIdx

s16 sPlayerGhostReplayIdx
static

◆ sPlayerInputIdx

s16 sPlayerInputIdx
static

◆ sPlayerInputs

u32* sPlayerInputs
static

◆ sPostTTButtonsPrev

u16 sPostTTButtonsPrev
static

◆ sPostTTFramesRemaining

s32 sPostTTFramesRemaining
static

◆ sPostTTReplay

u32* sPostTTReplay
static

◆ sPostTTReplayIdx

s16 sPostTTReplayIdx
static

◆ sPrevCourseId

u16 sPrevCourseId
static

◆ sUnusedReplayCounter

UNUSED s32 sUnusedReplayCounter
static