diff options
author | Marijn van der Werf <marijn.vanderwerf@gmail.com> | 2017-05-08 22:23:56 +0200 |
---|---|---|
committer | YamaArashi <YamaArashi@users.noreply.github.com> | 2017-05-08 14:19:49 -0700 |
commit | 64412ee4c45a53712dd94410966ec68771b83fdd (patch) | |
tree | ee4b7196a647cebcf27eac8c7ea6b1cc93531c3a /src | |
parent | bb1440fde21a36209bf61160172d922e21fbef12 (diff) |
Decompile ShowLinkBattleRecords
Diffstat (limited to 'src')
-rw-r--r-- | src/battle_records.c | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/src/battle_records.c b/src/battle_records.c new file mode 100644 index 000000000..3290bbebe --- /dev/null +++ b/src/battle_records.c @@ -0,0 +1,27 @@ +#include "global.h" +#include "menu.h" + +extern const u8 gOtherText_BattleResults[]; +extern const u8 gOtherText_WinLoseDraw[]; + +void PrintLinkBattleWinsLossesDraws(void *); + +void PrintLinkBattleRecord(void *, u8); + +void ShowLinkBattleRecords(void) { + s32 i; + MenuDrawTextWindow(1, 0, 28, 18); + sub_8072BD8((u8 *) gOtherText_BattleResults, 0, 1, 240); + + PrintLinkBattleWinsLossesDraws(gSaveBlock1.linkBattleRecords); +#if ENGLISH + MenuPrint(gOtherText_WinLoseDraw, 12, 6); +#elif GERMAN + MenuPrint_PixelCoords((u8 *) gOtherText_WinLoseDraw, 88, 48, 1); +#endif + + for (i = 0; i < 5; i++) + { + PrintLinkBattleRecord(gSaveBlock1.linkBattleRecords[i], 6 + (i + 1) * 2); + } +} |