Palette cleanup

This commit is contained in:
Mateon1
2024-11-01 12:35:04 +01:00
parent fd89ecf865
commit 14a51f514b
13 changed files with 142 additions and 124 deletions

View File

@@ -4,10 +4,10 @@
#include "structs/rgb.h"
void InitBGPaletteBuffer(void);
void nullsub_4(s32 index, const u8 *colorArray, s32, u8 *);
void nullsub_5(s32 index, const Rgb32 *colorArray);
void SetBGPaletteBufferColorArray(s32 index, const Rgb32 *color32);
void SetBGPaletteBufferColorRGB(s32 index, const u8 *colorArray, s32, u8 *);
void nullsub_4(s32 index, const Rgb32 *color, s32 brightness, const Rgb32 *ramp);
void nullsub_5(s32 index, const Rgb32 *color);
void SetBGPaletteBufferColorArray(s32 index, const Rgb32 *color);
void SetBGPaletteBufferColorRGB(s32 index, const Rgb32 *color, s32 brightness, const Rgb32 *ramp);
void TransferBGPaletteBuffer(void);
#endif // GUARD_BG_PALETTE_BUFFER_H

View File

@@ -42,7 +42,7 @@ typedef struct unkDataFor8004AA4
void nullsub_6(void);
void sub_8004AA4(unkStruct_202EE8C *, OpenedFile *, s32);
bool8 sub_8004AF0(bool8, unkStruct_202EE8C *, s32, s32, s32, u8 *);
bool8 sub_8004AF0(bool8, unkStruct_202EE8C *, s32, s32, s32, const Rgb32 *);
bool8 sub_8004D14(unkStruct_202EE8C *, s32);
bool8 sub_8004D40(unkStruct_202EE8C *, s32);

View File

@@ -1,15 +1,17 @@
#ifndef GUARD_CODE_800558C_H
#define GUARD_CODE_800558C_H
#include "structs/rgb.h"
#include "structs/axdata.h"
#include "file_system.h"
// size: ? 0x20 for now
struct unkStructFor800561C
struct axMapSprite
{
u8 fill0[0x14 - 0x0];
void *unk14;
s32 *unk18;
s32 unk1C;
axmain axmain;
const u32 *tiles;
const Rgb32 *pal;
s32 tileCount;
};
extern s16 *gUnknown_203B078;
@@ -21,10 +23,10 @@ void nullsub_10(bool8);
void nullsub_12(void);
void nullsub_13(void);
void nullsub_14(void);
void sub_8005610(OpenedFile *, s32, s32, u8 *);
void sub_8005770(s32, u8 *colorArray, s32, u8 *);
void sub_8005610(OpenedFile *, s32, s32, const Rgb32 *);
void sub_8005770(s32, const Rgb32 *color, s32, const Rgb32 *ramp);
void sub_80057E8(void);
void sub_8005838(s32 *, u8 kind);
void sub_80060EC(void);
#endif // GUARD_CODE_800558C_H
#endif // GUARD_CODE_800558C_H

View File

@@ -5,6 +5,7 @@
#include "structs/dungeon_entity.h"
#include "file_system.h"
#include "structs/map.h"
#include "structs/rgb.h"
#include "structs/str_position.h"
#include "sprite.h"
@@ -23,15 +24,6 @@ typedef struct DungeonLocation
/* 0x1 */ u8 floor;
} DungeonLocation;
// size: 0x4
// This might be "RGB"... see `SetDungeonBGColorRGB()`
typedef struct Dungeon_sub
{
u8 unk0;
u8 unk1;
u8 unk2;
} Dungeon_sub;
typedef struct Weather
{
/* 0xE264 */ u8 weather; // Uses the weather constants in weather.h.
@@ -267,7 +259,7 @@ typedef struct Dungeon
Entity *unkBC;
u8 fillC0[0x134 - 0xC0];
struct unkStruct_Dungeon134_sub unk134;
Dungeon_sub unk17C[0x100];
Rgb32 colorRamp[0x100];
/* 0x57C */ u8 fill57C[0x5C0 - 0x57c];
/* 0x5C0 */ s32 unk5C0;
/* 0x5C4 */ struct unkStruct_Dungeon5C4_sub unk5C4[3];