From b60b0e6ad11fa02d2a3e013edd913dfcfc7d8f1f Mon Sep 17 00:00:00 2001 From: red031000 Date: Thu, 4 May 2023 21:13:56 +0100 Subject: [PATCH] MOD59_021DA04C --- arm9/modules/59/asm/mod59_TV_asm.s | 4 ---- arm9/modules/59/src/mod59_TV_src.c | 12 +++++++++++- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/arm9/modules/59/asm/mod59_TV_asm.s b/arm9/modules/59/asm/mod59_TV_asm.s index c8f276c1e..6bcbfd25e 100644 --- a/arm9/modules/59/asm/mod59_TV_asm.s +++ b/arm9/modules/59/asm/mod59_TV_asm.s @@ -4,10 +4,6 @@ .balign 4, 0 .rodata - .global MOD59_021DA04C -MOD59_021DA04C: ; 0x021DA04C - .byte 0x02, 0x00, 0x00, 0x20, 0x18, 0x01, 0x01, 0x00 - .global MOD59_021DA054 MOD59_021DA054: ; 0x021DA054 .byte 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 diff --git a/arm9/modules/59/src/mod59_TV_src.c b/arm9/modules/59/src/mod59_TV_src.c index 48baaa8ea..5b874812e 100644 --- a/arm9/modules/59/src/mod59_TV_src.c +++ b/arm9/modules/59/src/mod59_TV_src.c @@ -25,7 +25,17 @@ extern const struct BgTemplate MOD59_021DA080; extern const struct BgTemplate MOD59_021DA09C; extern const struct BgTemplate MOD59_021DA064; extern const struct BgTemplate MOD59_021DA0B8; -extern const struct WindowTemplate MOD59_021DA04C; + +const struct WindowTemplate MOD59_021DA04C = + { + .bgId = GF_BG_LYR_MAIN_2, + .tilemapLeft = 0, + .tilemapTop = 0, + .width = 32, + .height = 24, + .paletteNum = 0x01, + .baseTile = 1, + }; THUMB_FUNC BOOL MOD59_TVInit(struct UnkStruct_02006234 *param0, u32 *param1) {