mirror of
https://github.com/zeldaret/oot.git
synced 2024-11-14 21:40:03 +00:00
[ntsc-1.2] Match z_kaleido_debug.c, z_lmap_mark.c (#2077)
* Match z_kaleido_debug.c, z_lmap_mark.c * consistent style for n64dd callbacks calls
This commit is contained in:
parent
b40e51d8c8
commit
ea40688e4a
6 changed files with 29 additions and 14 deletions
|
@ -1,6 +1,7 @@
|
|||
#ifndef N64DD_H
|
||||
#define N64DD_H
|
||||
|
||||
#include "z64pause.h"
|
||||
#include "z64scene.h"
|
||||
|
||||
struct RegEditor;
|
||||
|
@ -22,7 +23,9 @@ struct PlayState;
|
|||
typedef struct n64ddStruct_80121AF0 {
|
||||
void (*unk_00)(n64ddStruct_800FF4B0_pointers*, struct n64ddStruct_80121AF0*);
|
||||
void (*unk_04)(void);
|
||||
char unk_08[0x34];
|
||||
char unk_08[0x2C];
|
||||
void (*unk_34)(PauseMapMarksData**);
|
||||
void (*unk_38)(PauseMapMarksData**);
|
||||
void (*unk_3C)(void);
|
||||
void (*unk_40)(void);
|
||||
s32 (*unk_44)(struct PlayState*);
|
||||
|
|
|
@ -68,10 +68,8 @@ n64ddStruct_80121AF0* func_800ADB30(n64ddStruct_80121AF0* arg0) {
|
|||
}
|
||||
|
||||
void func_800ADB8C(void) {
|
||||
if (B_80121AF0 != NULL) {
|
||||
if (B_80121AF0->unk_04 != NULL) {
|
||||
B_80121AF0->unk_04();
|
||||
}
|
||||
if ((B_80121AF0 != NULL) && (B_80121AF0->unk_04 != NULL)) {
|
||||
B_80121AF0->unk_04();
|
||||
}
|
||||
B_80121AF0 = NULL;
|
||||
}
|
||||
|
|
|
@ -177,20 +177,16 @@ void KaleidoSetup_Init(PlayState* play) {
|
|||
View_Init(&pauseCtx->view, play->state.gfxCtx);
|
||||
|
||||
#if PLATFORM_N64
|
||||
if (B_80121AF0 != NULL) {
|
||||
if (B_80121AF0->unk_3C != NULL) {
|
||||
B_80121AF0->unk_3C();
|
||||
}
|
||||
if ((B_80121AF0 != NULL) && (B_80121AF0->unk_3C != NULL)) {
|
||||
B_80121AF0->unk_3C();
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
void KaleidoSetup_Destroy(PlayState* play) {
|
||||
#if PLATFORM_N64
|
||||
if (B_80121AF0 != NULL) {
|
||||
if (B_80121AF0->unk_40 != NULL) {
|
||||
B_80121AF0->unk_40();
|
||||
}
|
||||
if ((B_80121AF0 != NULL) && (B_80121AF0->unk_40 != NULL)) {
|
||||
B_80121AF0->unk_40();
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
|
|
@ -196,7 +196,7 @@ SceneDrawConfigFunc sSceneDrawConfigs[SDC_MAX] = {
|
|||
};
|
||||
|
||||
void Scene_Draw(PlayState* play) {
|
||||
if (B_80121AF0 != NULL && B_80121AF0->unk_6C != NULL) {
|
||||
if ((B_80121AF0 != NULL) && (B_80121AF0->unk_6C != NULL)) {
|
||||
B_80121AF0->unk_6C(play, sSceneDrawConfigs);
|
||||
return;
|
||||
}
|
||||
|
|
|
@ -605,6 +605,11 @@ void KaleidoScope_DrawDebugEditor(PlayState* play) {
|
|||
} else if (curSection == 0x5B) {
|
||||
if (CHECK_BTN_ALL(input->press.button, BTN_CUP) || CHECK_BTN_ALL(input->press.button, BTN_CLEFT)) {
|
||||
gSaveContext.save.info.inventory.gsTokens++;
|
||||
#if PLATFORM_N64
|
||||
if (gSaveContext.save.info.inventory.gsTokens >= 100) {
|
||||
gSaveContext.save.info.inventory.gsTokens = 100;
|
||||
}
|
||||
#endif
|
||||
} else if (CHECK_BTN_ALL(input->press.button, BTN_CDOWN) ||
|
||||
CHECK_BTN_ALL(input->press.button, BTN_CRIGHT)) {
|
||||
gSaveContext.save.info.inventory.gsTokens--;
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
#if PLATFORM_N64
|
||||
#include "n64dd.h"
|
||||
#endif
|
||||
#include "z_kaleido_scope.h"
|
||||
#include "assets/textures/parameter_static/parameter_static.h"
|
||||
|
||||
|
@ -27,9 +30,19 @@ void PauseMapMark_Init(PlayState* play) {
|
|||
gBossMarkState = 0;
|
||||
gBossMarkScale = 1.0f;
|
||||
gLoadedPauseMarkDataTable = gPauseMapMarkDataTable;
|
||||
#if PLATFORM_N64
|
||||
if ((B_80121AF0 != NULL) && (B_80121AF0->unk_34 != NULL)) {
|
||||
B_80121AF0->unk_34(&gLoadedPauseMarkDataTable);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
void PauseMapMark_Clear(PlayState* play) {
|
||||
#if PLATFORM_N64
|
||||
if ((B_80121AF0 != NULL) && (B_80121AF0->unk_38 != NULL)) {
|
||||
B_80121AF0->unk_38(&gLoadedPauseMarkDataTable);
|
||||
}
|
||||
#endif
|
||||
gLoadedPauseMarkDataTable = NULL;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue