Fix build

This commit is contained in:
JaceCear committed 2026-03-25 23:57:00 +01:00
1 parent aafedee043
commit 52bb392d59
2 files changed
+3 -2

No files matched your search

+2 -1
View File
@@ -1,7 +1,8 @@
#ifndef GUARD_COLOR_H
#define GUARD_COLOR_H
#if PLATFORM_GBA || (RENDERER == RENDERER_SOFTWARE)
// TODO: Full RGB in SA1
#if PLATFORM_GBA || (GAME == GAME_SA1) || (RENDERER == RENDERER_SOFTWARE)
// ABGR_1555
typedef uint16_t ColorRaw;
typedef union Color {
+1 -1
View File
@@ -5,7 +5,7 @@ ALIGNED(256) uint8_t EWRAM_START[EWRAM_SIZE] = { 0 };
ALIGNED(256) uint8_t IWRAM_START[IWRAM_SIZE] = { 0 };
// TODO: REG_BASE needs to be u8, because of the address macro definitions
ALIGNED(256) uint8_t REG_BASE[IO_SIZE] = { 0 };
ALIGNED(256) uint16_t PLTT[PLTT_SIZE / sizeof(uint16_t)] = { 0 };
ALIGNED(256) ColorRaw PLTT[32 * PALETTE_LEN_4BPP] = { 0 };
ALIGNED(256) uint8_t VRAM[VRAM_SIZE] = { 0 };
ALIGNED(256) uint8_t OAM[OAM_SIZE] = { 0 };
ALIGNED(256) uint8_t FLASH_BASE[FLASH_ROM_SIZE_1M * SECTORS_PER_BANK] = { 0 };