summaryrefslogtreecommitdiff
path: root/src/unk_81BAD84.c
diff options
context:
space:
mode:
authorGriffinR <griffin.g.richards@gmail.com>2020-02-07 17:12:27 -0500
committerhuderlem <huderlem@gmail.com>2020-02-08 14:23:41 -0600
commitfaeb974c46275f466a4f4d513734d8bccf4485ab (patch)
tree789c80c79bced85fbe7f76e4cdb6068c862ca98a /src/unk_81BAD84.c
parent6640c509c043ac8f342a76ec8dd8268c38d0d160 (diff)
Minor berry fix data clean up
Diffstat (limited to 'src/unk_81BAD84.c')
-rw-r--r--src/unk_81BAD84.c47
1 files changed, 0 insertions, 47 deletions
diff --git a/src/unk_81BAD84.c b/src/unk_81BAD84.c
deleted file mode 100644
index adf43bb90..000000000
--- a/src/unk_81BAD84.c
+++ /dev/null
@@ -1,47 +0,0 @@
-#include "global.h"
-#include "graphics.h"
-
-const struct {
- const u32 *gfx;
- const u32 *tileMap;
- const u16 *pltt;
-} gUnknown_08617128[] = {
- {
- gBerryFixGameboy_Gfx,
- gBerryFixGameboy_Tilemap,
- gBerryFixGameboy_Pal
- }, {
- gBerryFixGameboyLogo_Gfx,
- gBerryFixGameboyLogo_Tilemap,
- gBerryFixGameboyLogo_Pal
- }, {
- gBerryFixGbaTransfer_Gfx,
- gBerryFixGbaTransfer_Tilemap,
- gBerryFixGbaTransfer_Pal
- }, {
- gBerryFixGbaTransferHighlight_Gfx,
- gBerryFixGbaTransferHighlight_Tilemap,
- gBerryFixGbaTransferHighlight_Pal
- }, {
- gBerryFixGbaTransferError_Gfx,
- gBerryFixGbaTransferError_Tilemap,
- gBerryFixGbaTransferError_Pal
- }, {
- gBerryFixWindow_Gfx,
- gBerryFixWindow_Tilemap,
- gBerryFixWindow_Pal
- }
-};
-
-void sub_81BAD84(u32 idx)
-{
- REG_DISPCNT = 0x0000;
- REG_BG0HOFS = 0x0000;
- REG_BG0VOFS = 0x0000;
- REG_BLDCNT = 0x0000;
- LZ77UnCompVram(gUnknown_08617128[idx].gfx, (void *)BG_CHAR_ADDR(0));
- LZ77UnCompVram(gUnknown_08617128[idx].tileMap, (void *)BG_SCREEN_ADDR(31));
- CpuCopy16(gUnknown_08617128[idx].pltt, (void *)PLTT, 0x200);
- REG_BG0CNT = 0x1f00;
- REG_DISPCNT = DISPCNT_BG0_ON;
-}