summaryrefslogtreecommitdiff
path: root/home/tileset.asm
diff options
context:
space:
mode:
Diffstat (limited to 'home/tileset.asm')
-rw-r--r--home/tileset.asm26
1 files changed, 25 insertions, 1 deletions
diff --git a/home/tileset.asm b/home/tileset.asm
index 4512728..4bf6a98 100644
--- a/home/tileset.asm
+++ b/home/tileset.asm
@@ -1,7 +1,7 @@
include "constants.asm"
-SECTION "LoadTilesetGFX", ROM0[$2D26]
+SECTION "home/tileset.asm", ROM0
LoadTilesetGFX:: ; 2d26
call GetMapEnvironment
@@ -417,3 +417,27 @@ LoadTileset:: ; 2f48
pop bc
pop hl
ret
+
+ReloadFontAndTileset:: ; 2f6b (00:2f6b)
+ call DisableLCD
+ ldh a, [hROMBank]
+ push af
+ ld a, [wMapGroup]
+ ld b, a
+ ld a, [wMapId]
+ ld c, a
+ call SwitchToAnyMapBank
+ call LoadFontExtra
+ call LoadMapPart
+ call LoadTilesetGFX
+ pop af
+ call Bankswitch
+
+ call EnableLCD
+ ret
+
+LoadTilesetGFX_LCDOff:: ; 2f8d (00:2f8d)
+ call DisableLCD
+ call LoadTilesetGFX
+ call EnableLCD
+ ret \ No newline at end of file