mirror of
https://github.com/zeldaret/oot.git
synced 2025-08-19 13:35:18 +00:00
Make Gamestates use thisx for entry point functions (#437)
* fix colliderinit typo * fix initchain * reloc * thisx * sample * review * forgot sample main
This commit is contained in:
parent
b010db7c19
commit
ed719f3da0
7 changed files with 74 additions and 54 deletions
|
@ -19,16 +19,20 @@ void Opening_SetupTitleScreen(OpeningContext* this) {
|
|||
void func_80803C5C(OpeningContext* this) {
|
||||
}
|
||||
|
||||
void Opening_Main(OpeningContext* this) {
|
||||
void Opening_Main(GameState* thisx) {
|
||||
OpeningContext* this = (OpeningContext*)thisx;
|
||||
|
||||
func_80095248(this->state.gfxCtx, 0, 0, 0);
|
||||
Opening_SetupTitleScreen(this);
|
||||
func_80803C5C(this);
|
||||
}
|
||||
|
||||
void Opening_Destroy(OpeningContext* this) {
|
||||
void Opening_Destroy(GameState* thisx) {
|
||||
}
|
||||
|
||||
void Opening_Init(OpeningContext* this) {
|
||||
void Opening_Init(GameState* thisx) {
|
||||
OpeningContext* this = (OpeningContext*)thisx;
|
||||
|
||||
R_UPDATE_RATE = 1;
|
||||
Matrix_Init(&this->state);
|
||||
View_Init(&this->view, this->state.gfxCtx);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue