Further remove unnecessary DMG/SGB checking (#7) and remove SGB layouts and palette data (#1)

This commit is contained in:
xCrystal
2023-07-26 17:01:20 +02:00
parent acd022d765
commit d30b9dd60f
68 changed files with 284 additions and 1826 deletions

View File

@@ -160,8 +160,6 @@ Init::
call DelayFrame
predef InitSGBBorder
call InitSound
xor a
ld [wMapMusic], a

View File

@@ -1910,8 +1910,8 @@ ExitAllMenus::
call UpdateSprites
call GSReloadPalettes
FinishExitMenu::
ld b, SCGB_MAPPALS
call GetSGBLayout
ld b, CGB_MAPPALS
call GetCGBLayout
farcall LoadOW_BGPal7
call WaitBGMap2
farcall FadeInPalettes
@@ -1932,8 +1932,8 @@ ReturnToMapWithSpeechTextbox::
set 0, [hl]
call UpdateSprites
call WaitBGMap2
ld b, SCGB_MAPPALS
call GetSGBLayout
ld b, CGB_MAPPALS
call GetCGBLayout
farcall LoadOW_BGPal7
call UpdateTimePals
call DelayFrame

View File

@@ -178,21 +178,10 @@ ClearPalettes::
ldh [hCGBPalUpdate], a
ret
GetMemSGBLayout::
ld b, SCGB_DEFAULT
GetSGBLayout::
; load sgb packets unless dmg
ldh a, [hCGB]
and a
jr nz, .sgb
ldh a, [hSGB]
and a
ret z
.sgb
predef_jump LoadSGBLayout
GetMemCGBLayout::
ld b, CGB_DEFAULT
GetCGBLayout::
predef_jump LoadCGBLayout
SetHPPal::
; Set palette for hp bar pixel length e at hl.