1
0
Fork 0
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:
fig02 2020-10-11 21:52:50 -04:00 committed by GitHub
parent b010db7c19
commit ed719f3da0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 74 additions and 54 deletions

View file

@ -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);