1
0
Fork 0
mirror of https://github.com/zeldaret/oot.git synced 2025-08-11 09:20:17 +00:00

Add names to all typedef'd structs, unions, and enums (#2028)

* Add names to all typedef'd structs, unions, and enums

* wtf vs code

* Use a better regex
This commit is contained in:
cadmic 2024-08-12 00:07:48 -07:00 committed by GitHub
parent 672728455d
commit e6bc4bd8cb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
426 changed files with 1417 additions and 1417 deletions

View file

@ -3,7 +3,7 @@
#define ABS_ALT(x) ((x) < 0 ? -(x) : (x))
typedef struct {
typedef struct SfxPlayerState {
/* 0x0 */ f32 vol;
/* 0x4 */ f32 freqScale;
/* 0x8 */ s8 reverb;
@ -13,7 +13,7 @@ typedef struct {
/* 0xC */ u8 combFilterGain;
} SfxPlayerState;
typedef enum {
typedef enum SfxChannelIndex {
/* 0x0 */ SFX_CHANNEL_PLAYER0, // SfxPlayerBank
/* 0x1 */ SFX_CHANNEL_PLAYER1,
/* 0x2 */ SFX_CHANNEL_PLAYER2,
@ -32,20 +32,20 @@ typedef enum {
/* 0xF */ SFX_CHANNEL_VOICE1
} SfxChannelIndex; // playerIdx = 2
typedef struct {
typedef struct FreqLerp {
/* 0x0 */ f32 value;
/* 0x4 */ f32 target;
/* 0x8 */ f32 step;
/* 0xC */ s32 remainingFrames;
} FreqLerp;
typedef struct {
typedef struct NatureAmbienceDataIO {
/* 0x0 */ u16 playerIO;
/* 0x2 */ u16 channelMask;
/* 0x4 */ u8 channelIO[3 * 33 + 1];
} NatureAmbienceDataIO; // size = 0x68
typedef enum {
typedef enum AudioDebugPage {
/* 0x0 */ PAGE_NON,
/* 0x1 */ PAGE_SOUND_CONTROL,
/* 0x2 */ PAGE_SPEC_INFO, // unused
@ -66,7 +66,7 @@ typedef enum {
#define SCROLL_PRINT_BUF_SIZE 25
typedef struct {
typedef struct OcarinaStick {
s8 x;
s8 y;
} OcarinaStick;

View file

@ -1345,7 +1345,7 @@ void AudioHeap_DiscardSampleCaches(void) {
}
}
typedef struct {
typedef struct StorageChange {
u32 oldAddr;
u32 newAddr;
u32 size;

View file

@ -7,14 +7,14 @@
#define ASYNC_ID(v) ((u8)(v >> 8))
#define ASYNC_LOAD_STATUS(v) ((u8)(v >> 0))
typedef enum {
typedef enum SlowLoadState {
/* 0 */ SLOW_LOAD_STATE_WAITING,
/* 1 */ SLOW_LOAD_STATE_START,
/* 2 */ SLOW_LOAD_STATE_LOADING,
/* 3 */ SLOW_LOAD_STATE_DONE
} SlowLoadState;
typedef struct {
typedef struct SampleBankRelocInfo {
/* 0x00 */ s32 sampleBankId1;
/* 0x04 */ s32 sampleBankId2;
/* 0x08 */ s32 baseAddr1;

View file

@ -21,7 +21,7 @@
#define PROCESS_SCRIPT_END -1
typedef enum {
typedef enum PortamentoMode {
/* 0 */ PORTAMENTO_MODE_OFF,
/* 1 */ PORTAMENTO_MODE_1,
/* 2 */ PORTAMENTO_MODE_2,

View file

@ -14,7 +14,7 @@
#define DMEM_WET_LEFT_CH 0xC80
#define DMEM_WET_RIGHT_CH 0xE20 // = DMEM_WET_LEFT_CH + DMEM_1CH_SIZE
typedef enum {
typedef enum HaasEffectDelaySide {
/* 0 */ HAAS_EFFECT_DELAY_NONE,
/* 1 */ HAAS_EFFECT_DELAY_LEFT, // Delay left channel so that right channel is heard first
/* 2 */ HAAS_EFFECT_DELAY_RIGHT // Delay right channel so that left channel is heard first

View file

@ -26,7 +26,7 @@
Audio_ProcessSeqCmd((SEQCMD_OP_SET_SEQPLAYER_VOLUME << 28) | ((u8)(seqPlayerIndex) << 24) | \
((u8)(duration) << 16) | ((u8)((volume)*127.0f)));
typedef struct {
typedef struct SeqRequest {
/* 0x0 */ u8 seqId;
/* 0x1 */ u8 priority; // higher values have higher priority
} SeqRequest; // size = 0x2

View file

@ -2,7 +2,7 @@
#include "global.h"
#include "terminal.h"
typedef struct {
typedef struct SfxRequest {
/* 0x00 */ u16 sfxId;
/* 0x04 */ Vec3f* pos;
/* 0x08 */ u8 token;
@ -11,7 +11,7 @@ typedef struct {
/* 0x14 */ s8* reverbAdd;
} SfxRequest; // size = 0x18
typedef struct {
typedef struct UnusedBankLerp {
/* 0x00 */ f32 value;
/* 0x04 */ f32 target;
/* 0x08 */ f32 step;