diff options
| author | Aetias <aetias@outlook.com> | 2025-01-18 09:44:01 +0100 |
|---|---|---|
| committer | Aetias <aetias@outlook.com> | 2025-01-18 09:44:01 +0100 |
| commit | 13108e3ae4e95a4a9a547a3074852099d299a6b9 (patch) | |
| tree | 21f3ce5b19514780bad5c1451718b4367f6fa47c /include/Render/FadeController.hpp | |
| parent | 48bbd8bb7f008ac913cabb6f7faf4a47ad86878b (diff) | |
Move ARM9 Main documentation from Ghidra
Diffstat (limited to 'include/Render/FadeController.hpp')
| -rw-r--r-- | include/Render/FadeController.hpp | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/include/Render/FadeController.hpp b/include/Render/FadeController.hpp new file mode 100644 index 00000000..59a17e48 --- /dev/null +++ b/include/Render/FadeController.hpp @@ -0,0 +1,33 @@ +#pragma once + +#include "global.h" +#include "types.h" + +#include "Render/FadeControl.hpp" + +#define FADE_CONTROL_COUNT 16 + +struct FadeControlEntry { + /* 0 */ FadeControl *mControl; + /* 4 */ unk32 mUnk_4; + /* 8 */ unk32 mUnk_8; + /* c */ +}; + +struct FadeController { + /* 00 */ s32 mLength; + /* 04 */ FadeControl (*mList)[FADE_CONTROL_COUNT]; + /* 44 */ FadeControl *mCurrent; + /* 48 */ + + bool Has(FadeControl *control); + static bool Contains(FadeControlEntry *needle, s32 length, FadeControl **haystack); + bool AddIfAbsent(FadeControl *control, unk32 param2, unk32 param3); + static bool Add(FadeControlEntry *entry, s32 maxLength, s32 *length, FadeControl **list, bool allowDuplicates); + void RemoveFadeControl(FadeControl *control); + static bool Remove(FadeControlEntry *entry, s32 *length, FadeControl **list); + bool func_0202d77c(FadeControl *control); + bool func_0202d7ac(); + void ProcessFade(s32 param1); + void SetScreenBrightness(s32 param1); +}; |
