diff options
author | scnorton <scnorton@biociphers.org> | 2017-05-31 10:12:55 -0400 |
---|---|---|
committer | scnorton <scnorton@biociphers.org> | 2017-05-31 10:12:55 -0400 |
commit | 18e060cd532fbe5678d08dd1a1386ae0763f6fc1 (patch) | |
tree | 58b6206d0353470ac238be15675c325aadf04ebb /src/use_pokeblock.c | |
parent | 859a04c318904a3894896c0c66f47def453df858 (diff) |
Start to decompile use_pokeblock.s
Diffstat (limited to 'src/use_pokeblock.c')
-rw-r--r-- | src/use_pokeblock.c | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/src/use_pokeblock.c b/src/use_pokeblock.c new file mode 100644 index 000000000..78415cbd7 --- /dev/null +++ b/src/use_pokeblock.c @@ -0,0 +1,26 @@ +// +// Created by Scott Norton on 5/31/17. +// + +#include "global.h" +#include "main.h" +#include "pokemon.h" +#include "pokenav.h" +#include "use_pokeblock.h" + +asm(".text"); + +extern struct UnkPokenavStruct_Sub1 *gUnknown_02039304; +void launch_c3_walk_stairs_and_run_once(void *); +void sub_8136244(void); +void sub_8136294(void); + +void sub_8136130(u32 a0, u32 a1) +{ + gUnknown_02039304 = &gUnknown_083DFEC4->unkD164; + gUnknown_02039304->unk8 = a0; + gUnknown_02039304->unk4 = a1; + gUnknown_083DFEC4->unkD162[0] = 2; + launch_c3_walk_stairs_and_run_once(sub_8136294); + SetMainCallback2(sub_8136244); +} |