diff options
| author | Henny022p <info@henny022.de> | 2021-02-16 02:24:26 +0100 |
|---|---|---|
| committer | Henny022p <info@henny022.de> | 2021-02-16 02:24:26 +0100 |
| commit | 945a3fe944239cad64ca7b38cf018efbbedbb616 (patch) | |
| tree | ef0e1b4e59a16286e3d8e2f887e84dbf1f8e1aed /src/code_0807CC3C.c | |
| parent | a41cedf985af8e0791ca1dc27246ec787947073d (diff) | |
matched StartPlayerScript
Diffstat (limited to 'src/code_0807CC3C.c')
| -rw-r--r-- | src/code_0807CC3C.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/code_0807CC3C.c b/src/code_0807CC3C.c index 4309cca4..87c4775c 100644 --- a/src/code_0807CC3C.c +++ b/src/code_0807CC3C.c @@ -6,6 +6,8 @@ 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 +extern ScriptExecutionContext gUnk_02022750; extern void CreateSpeechBubbleExclamationMark(Entity*, u32, u32); extern void CreateSpeechBubbleQuestionMark(Entity*, u32, u32); @@ -17,6 +19,19 @@ extern void _call_via_r6(Entity*, ScriptExecutionContext*); extern u32* sub_0807DAA0(); +void StartPlayerScript(u32 unk1) { + Entity* player; + + _DmaZero(&gUnk_02022750, 0x24); + gUnk_02022750.unk_00 = (u16*)unk1; + player = &gPlayerEntity; + *(ScriptExecutionContext**)&player->cutsceneBeh = &gUnk_02022750; + gPlayerState.playerAction = 0x1c; + gPlayerState.field_0x3a = 0; + gPlayerState.field_0x39 = 0; + gPlayerState.field_0x38 = 0; +} + u32* sub_0807DB68(Entity* entity, u32 unk1) { u32* puVar1; |
