diff options
| author | Henny022p <info@henny022.de> | 2021-02-16 02:51:17 +0100 |
|---|---|---|
| committer | Henny022p <info@henny022.de> | 2021-02-16 02:51:17 +0100 |
| commit | ca6aece1f420a1ff6c5e4de1ad55e366457cd8ca (patch) | |
| tree | babcca6f85837cbef2ac5c2a5a350703cc311fd6 /src/code_0807CC3C.c | |
| parent | be9c1b41314003a413697467256b437e31998216 (diff) | |
matched sub_0807DAA0
Diffstat (limited to 'src/code_0807CC3C.c')
| -rw-r--r-- | src/code_0807CC3C.c | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/src/code_0807CC3C.c b/src/code_0807CC3C.c index f84d40d1..cc65de3d 100644 --- a/src/code_0807CC3C.c +++ b/src/code_0807CC3C.c @@ -6,8 +6,10 @@ extern u8 gUnk_0811E514[]; extern u8 gUnk_0811E510[]; -// the type is just a guess based on size and teh fact that these are around a lot in this file +// the type is just a guess based on size and the fact that these are around a lot in this file extern ScriptExecutionContext gUnk_02022750; +// might be ScriptExecutionContext[0x20] +extern u32 gUnk_02036570; extern void CreateSpeechBubbleExclamationMark(Entity*, u32, u32); extern void CreateSpeechBubbleQuestionMark(Entity*, u32, u32); @@ -18,7 +20,19 @@ extern void _call_via_r6(Entity*, ScriptExecutionContext*); void sub_0807DB88(ScriptExecutionContext* context, u32 unk1); void sub_0807DAF0(Entity* entity, ScriptExecutionContext* context, u32 unk1); -extern u32* sub_0807DAA0(); + +u32* sub_0807DAA0(void) { + u32* puVar1; + + puVar1 = &gUnk_02036570; + do { + if (*puVar1 == 0) { + return puVar1; + } + puVar1 = puVar1 + 9; + } while (puVar1 < &gUnk_02036570 + 0x480 / 4); + return NULL; +} void sub_0807DAC4(ScriptExecutionContext* context) { _DmaZero(context, 0x24); |
