Use TRUE for hCGBPalUpdate

This commit is contained in:
mid-kid 2020-08-03 23:41:01 +02:00
parent ac48d65498
commit b6055b1944
18 changed files with 50 additions and 50 deletions

View File

@ -673,7 +673,7 @@ StartTrainerBattle_LoadPokeBallGraphics:
call CopyBytes call CopyBytes
pop af pop af
ldh [rSVBK], a ldh [rSVBK], a
ld a, 1 ld a, TRUE
ldh [hCGBPalUpdate], a ldh [hCGBPalUpdate], a
call DelayFrame call DelayFrame
call BattleStart_CopyTilemapAtOnce call BattleStart_CopyTilemapAtOnce

View File

@ -1417,7 +1417,7 @@ BattleAnim_SetBGPals:
call CopyPals call CopyPals
pop af pop af
ldh [rSVBK], a ldh [rSVBK], a
ld a, $1 ld a, TRUE
ldh [hCGBPalUpdate], a ldh [hCGBPalUpdate], a
ret ret
@ -1438,7 +1438,7 @@ BattleAnim_SetOBPals:
call CopyPals call CopyPals
pop af pop af
ldh [rSVBK], a ldh [rSVBK], a
ld a, $1 ld a, TRUE
ldh [hCGBPalUpdate], a ldh [hCGBPalUpdate], a
ret ret

View File

@ -2546,7 +2546,7 @@ BGEffects_LoadBGPal0_OBPal1:
pop bc pop bc
pop af pop af
ldh [rSVBK], a ldh [rSVBK], a
ld a, $1 ld a, TRUE
ldh [hCGBPalUpdate], a ldh [hCGBPalUpdate], a
ret ret
@ -2573,7 +2573,7 @@ BGEffects_LoadBGPal1_OBPal0:
pop bc pop bc
pop af pop af
ldh [rSVBK], a ldh [rSVBK], a
ld a, $1 ld a, TRUE
ldh [hCGBPalUpdate], a ldh [hCGBPalUpdate], a
ret ret

View File

@ -448,7 +448,7 @@ Function81c33:
hlcoord 15, 2 hlcoord 15, 2
ld de, wc608 + 2 ld de, wc608 + 2
call Function81ca7 call Function81ca7
ld a, $1 ld a, TRUE
ldh [hCGBPalUpdate], a ldh [hCGBPalUpdate], a
ld a, $3 ld a, $3
ld [wJumptableIndex], a ld [wJumptableIndex], a
@ -1227,7 +1227,7 @@ Function822a3:
call Function81ca7 call Function81ca7
pop af pop af
ldh [rSVBK], a ldh [rSVBK], a
ld a, $1 ld a, TRUE
ldh [hCGBPalUpdate], a ldh [hCGBPalUpdate], a
call DelayFrame call DelayFrame
ret ret

View File

@ -167,7 +167,7 @@ INCBIN "gfx/overworld/heal_machine.2bpp"
ld bc, 1 palettes ld bc, 1 palettes
ld a, BANK(wOBPals2) ld a, BANK(wOBPals2)
call FarCopyWRAM call FarCopyWRAM
ld a, $1 ld a, TRUE
ldh [hCGBPalUpdate], a ldh [hCGBPalUpdate], a
ret ret
@ -231,7 +231,7 @@ INCLUDE "gfx/overworld/heal_machine.pal"
pop af pop af
ldh [rSVBK], a ldh [rSVBK], a
ld a, $1 ld a, TRUE
ldh [hCGBPalUpdate], a ldh [hCGBPalUpdate], a
ret ret

View File

@ -39,7 +39,7 @@ LoadPoisonBGPals:
jr nz, .loop jr nz, .loop
pop af pop af
ldh [rSVBK], a ldh [rSVBK], a
ld a, $1 ld a, TRUE
ldh [hCGBPalUpdate], a ldh [hCGBPalUpdate], a
ld c, 4 ld c, 4
call DelayFrames call DelayFrames

View File

@ -189,7 +189,7 @@ _CGB_PokegearPals:
ld a, BANK(wBGPals1) ld a, BANK(wBGPals1)
call FarCopyWRAM call FarCopyWRAM
call ApplyPals call ApplyPals
ld a, $1 ld a, TRUE
ldh [hCGBPalUpdate], a ldh [hCGBPalUpdate], a
ret ret
@ -243,7 +243,7 @@ _CGB_StatsScreenHPPals:
call ApplyAttrmap call ApplyAttrmap
call ApplyPals call ApplyPals
ld a, $1 ld a, TRUE
ldh [hCGBPalUpdate], a ldh [hCGBPalUpdate], a
ret ret
@ -282,7 +282,7 @@ _CGB_Pokedex:
call FarCopyWRAM call FarCopyWRAM
call ApplyAttrmap call ApplyAttrmap
call ApplyPals call ApplyPals
ld a, $1 ld a, TRUE
ldh [hCGBPalUpdate], a ldh [hCGBPalUpdate], a
ret ret
@ -317,7 +317,7 @@ _CGB_BillsPC:
call InitPartyMenuOBPals call InitPartyMenuOBPals
call ApplyAttrmap call ApplyAttrmap
call ApplyPals call ApplyPals
ld a, $1 ld a, TRUE
ldh [hCGBPalUpdate], a ldh [hCGBPalUpdate], a
ret ret
@ -339,7 +339,7 @@ Function9009:
call InitPartyMenuOBPals call InitPartyMenuOBPals
call ApplyAttrmap call ApplyAttrmap
call ApplyPals call ApplyPals
ld a, $1 ld a, TRUE
ldh [hCGBPalUpdate], a ldh [hCGBPalUpdate], a
ret ret
@ -362,7 +362,7 @@ _CGB_PokedexUnownMode:
call InitPartyMenuOBPals call InitPartyMenuOBPals
call ApplyAttrmap call ApplyAttrmap
call ApplyPals call ApplyPals
ld a, $1 ld a, TRUE
ldh [hCGBPalUpdate], a ldh [hCGBPalUpdate], a
ret ret
@ -415,7 +415,7 @@ _CGB_SlotMachine:
call ByteFill call ByteFill
call ApplyAttrmap call ApplyAttrmap
call ApplyPals call ApplyPals
ld a, $1 ld a, TRUE
ldh [hCGBPalUpdate], a ldh [hCGBPalUpdate], a
ret ret
@ -433,7 +433,7 @@ _CGB_BetaTitleScreen:
call FillBoxCGB call FillBoxCGB
call ApplyAttrmap call ApplyAttrmap
call ApplyPals call ApplyPals
ld a, $1 ld a, TRUE
ldh [hCGBPalUpdate], a ldh [hCGBPalUpdate], a
ret ret
@ -573,7 +573,7 @@ _CGB_Evolution:
call WipeAttrmap call WipeAttrmap
call ApplyAttrmap call ApplyAttrmap
call ApplyPals call ApplyPals
ld a, $1 ld a, TRUE
ldh [hCGBPalUpdate], a ldh [hCGBPalUpdate], a
ret ret
@ -591,7 +591,7 @@ _CGB_GSTitleScreen:
ld a, SCGB_DIPLOMA ld a, SCGB_DIPLOMA
ld [wDefaultSGBLayout], a ld [wDefaultSGBLayout], a
call ApplyPals call ApplyPals
ld a, $1 ld a, TRUE
ldh [hCGBPalUpdate], a ldh [hCGBPalUpdate], a
ret ret
@ -725,7 +725,7 @@ _CGB_TrainerCard:
ld [hl], a ld [hl], a
call ApplyAttrmap call ApplyAttrmap
call ApplyPals call ApplyPals
ld a, $1 ld a, TRUE
ldh [hCGBPalUpdate], a ldh [hCGBPalUpdate], a
ret ret
@ -749,7 +749,7 @@ _CGB_MoveList:
call FillBoxCGB call FillBoxCGB
call ApplyAttrmap call ApplyAttrmap
call ApplyPals call ApplyPals
ld a, $1 ld a, TRUE
ldh [hCGBPalUpdate], a ldh [hCGBPalUpdate], a
ret ret
@ -759,7 +759,7 @@ _CGB_BetaPikachuMinigame:
call WipeAttrmap call WipeAttrmap
call ApplyAttrmap call ApplyAttrmap
call ApplyPals call ApplyPals
ld a, $1 ld a, TRUE
ldh [hCGBPalUpdate], a ldh [hCGBPalUpdate], a
ret ret
@ -771,7 +771,7 @@ _CGB_PokedexSearchOption:
call WipeAttrmap call WipeAttrmap
call ApplyAttrmap call ApplyAttrmap
call ApplyPals call ApplyPals
ld a, $1 ld a, TRUE
ldh [hCGBPalUpdate], a ldh [hCGBPalUpdate], a
ret ret
@ -819,7 +819,7 @@ _CGB_PackPals:
call FillBoxCGB call FillBoxCGB
call ApplyAttrmap call ApplyAttrmap
call ApplyPals call ApplyPals
ld a, $1 ld a, TRUE
ldh [hCGBPalUpdate], a ldh [hCGBPalUpdate], a
ret ret
@ -877,7 +877,7 @@ _CGB_MagnetTrain:
call FillBoxCGB call FillBoxCGB
call ApplyAttrmap call ApplyAttrmap
call ApplyPals call ApplyPals
ld a, $1 ld a, TRUE
ldh [hCGBPalUpdate], a ldh [hCGBPalUpdate], a
ret ret

View File

@ -150,7 +150,7 @@ Function8b07: ; unreferenced
call FarCopyWRAM call FarCopyWRAM
call ApplyPals call ApplyPals
ld a, $1 ld a, TRUE
ldh [hCGBPalUpdate], a ldh [hCGBPalUpdate], a
ret ret
@ -352,7 +352,7 @@ ApplyHPBarPals:
ld bc, 4 ld bc, 4
ld a, BANK(wBGPals2) ld a, BANK(wBGPals2)
call FarCopyWRAM call FarCopyWRAM
ld a, $1 ld a, TRUE
ldh [hCGBPalUpdate], a ldh [hCGBPalUpdate], a
ret ret

View File

@ -157,7 +157,7 @@ MG_Mobile_Layout01:
.asm_49467 .asm_49467
farcall ApplyAttrmap farcall ApplyAttrmap
farcall ApplyPals farcall ApplyPals
ld a, $1 ld a, TRUE
ldh [hCGBPalUpdate], a ldh [hCGBPalUpdate], a
ret ret

View File

@ -308,7 +308,7 @@ GameFreakLogoScene4:
ld [wOBPals2 + 13], a ld [wOBPals2 + 13], a
pop af pop af
ldh [rSVBK], a ldh [rSVBK], a
ld a, $1 ld a, TRUE
ldh [hCGBPalUpdate], a ldh [hCGBPalUpdate], a
ret ret
@ -1508,7 +1508,7 @@ Intro_Scene24_ApplyPaletteFade:
jr nz, .loop1 jr nz, .loop1
pop af pop af
ldh [rSVBK], a ldh [rSVBK], a
ld a, $1 ld a, TRUE
ldh [hCGBPalUpdate], a ldh [hCGBPalUpdate], a
ret ret
@ -1632,7 +1632,7 @@ CrystalIntro_UnownFade:
pop af pop af
ldh [rSVBK], a ldh [rSVBK], a
ld a, $1 ld a, TRUE
ldh [hCGBPalUpdate], a ldh [hCGBPalUpdate], a
ret ret
@ -1710,7 +1710,7 @@ Intro_Scene20_AppearUnown:
pop af pop af
ldh [rSVBK], a ldh [rSVBK], a
ld a, $1 ld a, TRUE
ldh [hCGBPalUpdate], a ldh [hCGBPalUpdate], a
ret ret
@ -1773,7 +1773,7 @@ endr
pop af pop af
ldh [rSVBK], a ldh [rSVBK], a
ld a, $1 ld a, TRUE
ldh [hCGBPalUpdate], a ldh [hCGBPalUpdate], a
ret ret
@ -1886,7 +1886,7 @@ Intro_RustleGrass:
dw IntroGrass2GFX dw IntroGrass2GFX
Intro_SetCGBPalUpdate: Intro_SetCGBPalUpdate:
ld a, $1 ld a, TRUE
ldh [hCGBPalUpdate], a ldh [hCGBPalUpdate], a
ret ret
@ -1903,7 +1903,7 @@ Intro_ClearBGPals:
pop af pop af
ldh [rSVBK], a ldh [rSVBK], a
ld a, $1 ld a, TRUE
ldh [hCGBPalUpdate], a ldh [hCGBPalUpdate], a
call DelayFrame call DelayFrame
call DelayFrame call DelayFrame

View File

@ -198,7 +198,7 @@ _TitleScreen:
ld a, -112 ld a, -112
ldh [hWY], a ldh [hWY], a
ld a, 1 ld a, TRUE
ldh [hCGBPalUpdate], a ldh [hCGBPalUpdate], a
; Update BG Map 0 (bank 0) ; Update BG Map 0 (bank 0)

View File

@ -88,7 +88,7 @@ UnusedTitleScreen:
pop af pop af
ldh [rSVBK], a ldh [rSVBK], a
ld a, $1 ld a, TRUE
ldh [hCGBPalUpdate], a ldh [hCGBPalUpdate], a
ld de, MUSIC_TITLE ld de, MUSIC_TITLE

View File

@ -33,7 +33,7 @@ ReanchorBGMap_NoOAMUpdate::
call _OpenAndCloseMenu_HDMATransferTilemapAndAttrmap call _OpenAndCloseMenu_HDMATransferTilemapAndAttrmap
farcall LoadOW_BGPal7 farcall LoadOW_BGPal7
farcall ApplyPals farcall ApplyPals
ld a, $1 ld a, TRUE
ldh [hCGBPalUpdate], a ldh [hCGBPalUpdate], a
xor a xor a
ldh [hBGMapMode], a ldh [hBGMapMode], a

View File

@ -99,7 +99,7 @@ DmgToCgbBGPals::
ld c, 8 ld c, 8
call CopyPals call CopyPals
; request pal update ; request pal update
ld a, 1 ld a, TRUE
ldh [hCGBPalUpdate], a ldh [hCGBPalUpdate], a
pop af pop af
@ -147,7 +147,7 @@ DmgToCgbObjPals::
ld c, 8 ld c, 8
call CopyPals call CopyPals
; request pal update ; request pal update
ld a, 1 ld a, TRUE
ldh [hCGBPalUpdate], a ldh [hCGBPalUpdate], a
pop af pop af
@ -182,7 +182,7 @@ DmgToCgbObjPal0::
ld b, a ld b, a
ld c, 1 ld c, 1
call CopyPals call CopyPals
ld a, 1 ld a, TRUE
ldh [hCGBPalUpdate], a ldh [hCGBPalUpdate], a
pop af pop af
@ -219,7 +219,7 @@ DmgToCgbObjPal1::
ld b, a ld b, a
ld c, 1 ld c, 1
call CopyPals call CopyPals
ld a, 1 ld a, TRUE
ldh [hCGBPalUpdate], a ldh [hCGBPalUpdate], a
pop af pop af
@ -319,7 +319,7 @@ ReloadSpritesNoPalettes::
call ByteFill call ByteFill
pop af pop af
ldh [rSVBK], a ldh [rSVBK], a
ld a, 1 ld a, TRUE
ldh [hCGBPalUpdate], a ldh [hCGBPalUpdate], a
call DelayFrame call DelayFrame
ret ret

View File

@ -197,7 +197,7 @@ ClearPalettes::
ldh [rSVBK], a ldh [rSVBK], a
; Request palette update ; Request palette update
ld a, 1 ld a, TRUE
ldh [hCGBPalUpdate], a ldh [hCGBPalUpdate], a
ret ret

View File

@ -409,7 +409,7 @@ Function1002dc:
Function1002ed: Function1002ed:
farcall LoadOW_BGPal7 farcall LoadOW_BGPal7
farcall ApplyPals farcall ApplyPals
ld a, $01 ld a, TRUE
ldh [hCGBPalUpdate], a ldh [hCGBPalUpdate], a
call DelayFrame call DelayFrame
ret ret
@ -2210,7 +2210,7 @@ Function100eca:
Function100ed4: Function100ed4:
farcall ApplyPals farcall ApplyPals
ld a, $01 ld a, TRUE
ldh [hCGBPalUpdate], a ldh [hCGBPalUpdate], a
ret ret

View File

@ -1450,7 +1450,7 @@ Function108b5a:
jr nz, .loop jr nz, .loop
pop af pop af
ldh [rSVBK], a ldh [rSVBK], a
ld a, $1 ld a, TRUE
ldh [hCGBPalUpdate], a ldh [hCGBPalUpdate], a
ret ret
@ -1474,7 +1474,7 @@ Function108b78:
ld [hld], a ld [hld], a
pop af pop af
ldh [rSVBK], a ldh [rSVBK], a
ld a, $1 ld a, TRUE
ldh [hCGBPalUpdate], a ldh [hCGBPalUpdate], a
ret ret

View File

@ -650,7 +650,7 @@ Function16cbd1:
ld a, $5 ld a, $5
call FarCopyWRAM call FarCopyWRAM
farcall ApplyPals farcall ApplyPals
ld a, $1 ld a, TRUE
ldh [hCGBPalUpdate], a ldh [hCGBPalUpdate], a
ret ret