1
0
Fork 0
mirror of https://github.com/zeldaret/oot.git synced 2025-07-03 06:24:30 +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:
Dragorn421 2024-08-24 14:18:48 +02:00 committed by GitHub
parent b40e51d8c8
commit ea40688e4a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 29 additions and 14 deletions

View file

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

View file

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