1
0
Fork 0
mirror of https://github.com/zeldaret/oot.git synced 2025-07-15 20:35:13 +00:00

Format all src C files

This commit is contained in:
Roman971 2020-03-22 22:19:43 +01:00
parent 251aea64ab
commit 8cfe7cce9f
652 changed files with 12488 additions and 19093 deletions

View file

@ -1,20 +1,15 @@
#include <ultra64.h>
#include <global.h>
#define COLD_RESET 0
#define NMI 1
#define COLD_RESET 0
#define NMI 1
void PreNmiBuff_Init(PreNmiBuff* this)
{
void PreNmiBuff_Init(PreNmiBuff* this) {
this->resetting = false;
if (osResetType == COLD_RESET)
{
if (osResetType == COLD_RESET) {
this->resetCount = 0;
this->duration = 0;
}
else
{
} else {
this->resetCount++;
this->duration += this->resetTime;
}
@ -22,14 +17,11 @@ void PreNmiBuff_Init(PreNmiBuff* this)
this->resetTime = 0;
}
void PreNmiBuff_SetReset(PreNmiBuff* this)
{
void PreNmiBuff_SetReset(PreNmiBuff* this) {
this->resetting = true;
this->resetTime = osGetTime();
}
u32 PreNmiBuff_IsResetting(PreNmiBuff* this)
{
u32 PreNmiBuff_IsResetting(PreNmiBuff* this) {
return this->resetting;
}