mirror of
https://github.com/zeldaret/mm.git
synced 2026-05-23 15:01:32 -04:00
6d6304d1a0
* Setup * ConsoleLogo * TitleSetup * MapSelect * FileSelect * Daytelop * Save file * PreNMI * Final cleanup and format * Update include/functions.h Co-authored-by: engineer124 <47598039+engineer124@users.noreply.github.com> * DayTelop * Split off setup * split of prenmi * readd SET * shorten some gamestate member names * Add comment about init * Update include/z64.h Co-authored-by: EllipticEllipsis <elliptic.ellipsis@gmail.com> * Small cleanup of comments * PR Co-authored-by: engineer124 <47598039+engineer124@users.noreply.github.com> Co-authored-by: EllipticEllipsis <elliptic.ellipsis@gmail.com>
66 lines
1.3 KiB
C
66 lines
1.3 KiB
C
#include "z_title_setup.h"
|
|
#include "overlays/gamestates/ovl_title/z_title.h"
|
|
|
|
void Setup_SetRegs(void) {
|
|
XREG(2) = 0;
|
|
XREG(10) = 0x1A;
|
|
XREG(11) = 0x14;
|
|
XREG(12) = 0xE;
|
|
XREG(13) = 0;
|
|
XREG(31) = 0;
|
|
R_MAGIC_CONSUME_TIMER_GIANTS_MASK = 80;
|
|
XREG(43) = 0xFC54;
|
|
|
|
XREG(44) = 0xD7;
|
|
XREG(45) = 0xDA;
|
|
XREG(68) = 0x61;
|
|
XREG(69) = 0x93;
|
|
XREG(70) = 0x28;
|
|
XREG(73) = 0x1E;
|
|
XREG(74) = 0x42;
|
|
XREG(75) = 0x1E;
|
|
XREG(76) = 0x1C;
|
|
XREG(77) = 0x3C;
|
|
XREG(78) = 0x2F;
|
|
XREG(79) = 0x62;
|
|
XREG(87) = 0;
|
|
XREG(88) = 0x56;
|
|
XREG(89) = 0x258;
|
|
XREG(90) = 0x1C2;
|
|
XREG(91) = 0;
|
|
XREG(94) = 0;
|
|
XREG(95) = 0;
|
|
|
|
YREG(32) = 0x50;
|
|
YREG(33) = 0x3C;
|
|
YREG(34) = 0xDC;
|
|
YREG(35) = 0x3C;
|
|
YREG(36) = 0x50;
|
|
YREG(37) = 0xA0;
|
|
YREG(38) = 0xDC;
|
|
YREG(39) = 0xA0;
|
|
YREG(40) = 0x8E;
|
|
YREG(41) = 0x6C;
|
|
YREG(42) = 0xCC;
|
|
YREG(43) = 0xB1;
|
|
}
|
|
|
|
void Setup_InitImpl(SetupState* this) {
|
|
func_80185908();
|
|
SaveContext_Init();
|
|
Setup_SetRegs();
|
|
|
|
STOP_GAMESTATE(&this->state);
|
|
SET_NEXT_GAMESTATE(&this->state, ConsoleLogo_Init, sizeof(ConsoleLogoState));
|
|
}
|
|
|
|
void Setup_Destroy(GameState* thisx) {
|
|
}
|
|
|
|
void Setup_Init(GameState* thisx) {
|
|
SetupState* this = (SetupState*)thisx;
|
|
|
|
this->state.destroy = Setup_Destroy;
|
|
Setup_InitImpl(this);
|
|
}
|