mirror of
https://github.com/zeldaret/oot.git
synced 2025-08-09 00:00:44 +00:00
Decompile z_play.c and Match/Document some of z_view.c (#74)
* Decompile z_play.c and Match/Document some of z_view.c Also fix the last non matching in z_sample.c and update some game state functions. * Suggestions from PR #74 * Fix undefined reference to Gameplay_DrawOverlay * Suggestion from PR #74 (2) * Fix a fake argument in func_800BC450
This commit is contained in:
parent
9ac1f8130d
commit
262f6c507c
278 changed files with 5139 additions and 5939 deletions
|
@ -7,22 +7,22 @@
|
|||
#include <ultra64.h>
|
||||
#include <global.h>
|
||||
|
||||
void Opening_SetNextGameState(OpeningContext* this) {
|
||||
gSaveContext.game_mode = 1;
|
||||
void Opening_SetupTitleScreen(OpeningContext* this) {
|
||||
gSaveContext.gameMode = 1;
|
||||
this->state.running = false;
|
||||
gSaveContext.link_age = 0;
|
||||
gSaveContext.linkAge = 0;
|
||||
func_800A82C8();
|
||||
gSaveContext.cutscene_index = 0xFFF3;
|
||||
gSaveContext.scene_setup_index = 7;
|
||||
SET_NEXT_GAMESTATE(&this->state, func_800BCA64, GlobalContext);
|
||||
gSaveContext.cutsceneIndex = 0xFFF3;
|
||||
gSaveContext.sceneSetupIndex = 7;
|
||||
SET_NEXT_GAMESTATE(&this->state, Gameplay_Init, GlobalContext);
|
||||
}
|
||||
|
||||
void func_80803C5C(OpeningContext* this) {
|
||||
}
|
||||
|
||||
void Opening_Update(OpeningContext* this) {
|
||||
void Opening_Main(OpeningContext* this) {
|
||||
func_80095248(this->state.gfxCtx, 0, 0, 0);
|
||||
Opening_SetNextGameState(this);
|
||||
Opening_SetupTitleScreen(this);
|
||||
func_80803C5C(this);
|
||||
}
|
||||
|
||||
|
@ -32,7 +32,7 @@ void Opening_Destroy(OpeningContext* this) {
|
|||
void Opening_Init(OpeningContext* this) {
|
||||
R_UPDATE_RATE = 1;
|
||||
Matrix_Init(&this->state);
|
||||
func_800AA278(&this->view, this->state.gfxCtx);
|
||||
this->state.main = Opening_Update;
|
||||
View_Init(&this->view, this->state.gfxCtx);
|
||||
this->state.main = Opening_Main;
|
||||
this->state.destroy = Opening_Destroy;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue