2021-12-27 19:23:03 +00:00
|
|
|
#pragma once
|
|
|
|
#include "ultra64/time.h"
|
|
|
|
#include "z64game.h"
|
|
|
|
|
2022-02-12 19:50:06 +00:00
|
|
|
struct PreNmiBuff {
|
2021-12-27 19:23:03 +00:00
|
|
|
/* 0x00 */ u32 resetting;
|
|
|
|
/* 0x04 */ u32 resetCount;
|
|
|
|
/* 0x08 */ OSTime duration;
|
|
|
|
/* 0x10 */ OSTime resetTime;
|
2022-02-12 19:50:06 +00:00
|
|
|
}; // size = 0x18 (actually osAppNmiBuffer is 0x40 bytes large but the rest is unused)
|
2021-12-27 19:23:03 +00:00
|
|
|
|
2022-02-12 19:50:06 +00:00
|
|
|
struct PreNMIContext {
|
2021-12-27 19:23:03 +00:00
|
|
|
/* 0x00 */ GameState state;
|
|
|
|
/* 0xA4 */ u32 timer;
|
|
|
|
/* 0xA8 */ UNK_TYPE4 unk_A8;
|
2022-02-12 19:50:06 +00:00
|
|
|
}; // size = 0xAC
|
2021-12-27 19:23:03 +00:00
|
|
|
|
|
|
|
void Audio_PreNMIInternal(void);
|
|
|
|
void Audio_PreNMI();
|
|
|
|
|
|
|
|
void PreNMI_Init(GameState* thissx);
|
|
|
|
|
|
|
|
|