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
pop af
ldh [rSVBK], a
ld a, 1
ld a, TRUE
ldh [hCGBPalUpdate], a
call DelayFrame
call BattleStart_CopyTilemapAtOnce

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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