diff options
author | Thomas Winwood <twwinwood@gmail.com> | 2018-06-18 07:17:19 +0100 |
---|---|---|
committer | Thomas Winwood <twwinwood@gmail.com> | 2018-06-18 07:17:19 +0100 |
commit | 67c8820a607da664acb4d1513f2fa6db8941548c (patch) | |
tree | ad6317a0794bb2f1ec0d9867054a2ebdf4312e56 | |
parent | 346b9deadcbbd1f11a1e1081dca540211e1bc0fa (diff) |
Decompile sub_80DDD58
(I didn't actually do this one, shinny did)
-rw-r--r-- | asm/ghost.s | 17 | ||||
-rw-r--r-- | src/ghost.c | 8 |
2 files changed, 8 insertions, 17 deletions
diff --git a/asm/ghost.s b/asm/ghost.s index 699a3c13e..3aa77a273 100644 --- a/asm/ghost.s +++ b/asm/ghost.s @@ -7,23 +7,6 @@ @ ghost - thumb_func_start sub_80DDD58 -sub_80DDD58: @ 80DDD58 - push {r4,lr} - adds r4, r0, 0 - movs r1, 0x1 - bl sub_8078764 - ldr r1, _080DDD74 @ =sub_80DDD78 - str r1, [r4, 0x1C] - adds r0, r4, 0 - bl _call_via_r1 - pop {r4} - pop {r0} - bx r0 - .align 2, 0 -_080DDD74: .4byte sub_80DDD78 - thumb_func_end sub_80DDD58 - thumb_func_start sub_80DDD78 sub_80DDD78: @ 80DDD78 push {r4,lr} diff --git a/src/ghost.c b/src/ghost.c index 6c7e36190..c14a60fdf 100644 --- a/src/ghost.c +++ b/src/ghost.c @@ -10,6 +10,7 @@ extern u8 gUnknown_0202F7D2; void sub_80DDBD8(struct Sprite *); void sub_80DDC4C(struct Sprite *); void sub_80DDCC8(struct Sprite *); +void sub_80DDD78(struct Sprite *); void sub_80DDB6C(struct Sprite *sprite) { InitAnimSpritePos(sprite, 1); @@ -107,4 +108,11 @@ void sub_80DDCC8(struct Sprite *sprite) } if(sprite->data[6] == 0) sprite->data[6] = 0x100; +} + +void sub_80DDD58(struct Sprite *sprite) +{ + sub_8078764(sprite, 1); + sprite->callback = sub_80DDD78; + sub_80DDD78(sprite); }
\ No newline at end of file |