124c17d315
# Conflicts: # README.md # data/field_effect_scripts.s # data/maps/AncientTomb/scripts.inc # data/maps/DesertRuins/scripts.inc # data/maps/IslandCave/scripts.inc # data/scripts/follower.inc # graphics/object_events/pics/pokemon/wailord.png # graphics/object_events/pics/pokemon_old/substitute.png # include/constants/event_objects.h # include/global.h # remote_build.sh # spritesheet_rules.mk # src/bike.c # src/data/object_events/object_event_anims.h # src/data/object_events/object_event_graphics.h # src/data/object_events/object_event_graphics_info_followers.h # src/data/object_events/object_event_pic_tables.h # src/event_object_movement.c # src/field_effect_helpers.c # src/field_screen_effect.c # src/overworld.c # src/palette.c # src/pokemon_summary_screen.c # src/scrcmd.c # src/trainer_see.c
31 lines
1.3 KiB
C
31 lines
1.3 KiB
C
#ifndef GUARD_DECOMPRESS_H
|
|
#define GUARD_DECOMPRESS_H
|
|
|
|
#include "sprite.h"
|
|
|
|
extern u8 ALIGNED(4) gDecompressionBuffer[0x4000];
|
|
|
|
void LZDecompressWram(const u32 *src, void *dest);
|
|
void LZDecompressVram(const u32 *src, void *dest);
|
|
|
|
bool32 IsLZ77Data(const void *ptr, u32 minSize, u32 maxSize);
|
|
|
|
u16 LoadCompressedSpriteSheet(const struct CompressedSpriteSheet *src);
|
|
u16 LoadCompressedSpriteSheetByTemplate(const struct SpriteTemplate *template, s32 offset);
|
|
void LoadCompressedSpriteSheetOverrideBuffer(const struct CompressedSpriteSheet *src, void *buffer);
|
|
bool8 LoadCompressedSpriteSheetUsingHeap(const struct CompressedSpriteSheet *src);
|
|
|
|
void LoadCompressedSpritePalette(const struct CompressedSpritePalette *src);
|
|
void LoadCompressedSpritePaletteWithTag(const u32 *pal, u16 tag);
|
|
void LoadCompressedSpritePaletteOverrideBuffer(const struct CompressedSpritePalette *src, void *buffer);
|
|
bool8 LoadCompressedSpritePaletteUsingHeap(const struct CompressedSpritePalette *src);
|
|
|
|
void DecompressPicFromTable(const struct CompressedSpriteSheet *src, void *buffer);
|
|
|
|
void HandleLoadSpecialPokePic(bool32 isFrontPic, void *dest, s32 species, u32 personality);
|
|
|
|
void LoadSpecialPokePic(void *dest, s32 species, u32 personality, bool8 isFrontPic);
|
|
|
|
u32 GetDecompressedDataSize(const u32 *ptr);
|
|
|
|
#endif // GUARD_DECOMPRESS_H
|