2017-09-02 19:55:39 +02:00
|
|
|
#ifndef GUARD_DECOMPRESS_H
|
|
|
|
#define GUARD_DECOMPRESS_H
|
|
|
|
|
|
|
|
#include "sprite.h"
|
|
|
|
|
2017-11-04 16:11:13 +01:00
|
|
|
extern u8 gDecompressionBuffer[0x4000];
|
|
|
|
|
2018-11-07 19:35:31 +01:00
|
|
|
void LZDecompressWram(const u32 *src, void *dest);
|
|
|
|
void LZDecompressVram(const u32 *src, void *dest);
|
2017-09-02 20:08:08 +02:00
|
|
|
|
2017-09-02 19:55:39 +02:00
|
|
|
u16 LoadCompressedObjectPic(const struct CompressedSpriteSheet *src);
|
|
|
|
void LoadCompressedObjectPicOverrideBuffer(const struct CompressedSpriteSheet *src, void *buffer);
|
2017-10-14 16:55:25 +02:00
|
|
|
bool8 LoadCompressedObjectPicUsingHeap(const struct CompressedSpriteSheet* src);
|
2017-09-02 20:08:08 +02:00
|
|
|
|
2017-09-02 19:55:39 +02:00
|
|
|
void LoadCompressedObjectPalette(const struct CompressedSpritePalette *src);
|
|
|
|
void LoadCompressedObjectPaletteOverrideBuffer(const struct CompressedSpritePalette *a, void *buffer);
|
2017-09-02 20:08:08 +02:00
|
|
|
bool8 LoadCompressedObjectPaletteUsingHeap(const struct CompressedSpritePalette *src);
|
|
|
|
|
2017-09-02 19:55:39 +02:00
|
|
|
void DecompressPicFromTable(const struct CompressedSpriteSheet *src, void* buffer, s32 species);
|
2017-09-02 20:08:08 +02:00
|
|
|
void DecompressPicFromTable_2(const struct CompressedSpriteSheet *src, void* buffer, s32 species);
|
|
|
|
void DecompressPicFromTable_DontHandleDeoxys(const struct CompressedSpriteSheet *src, void* buffer, s32 species);
|
|
|
|
|
2017-09-02 19:55:39 +02:00
|
|
|
void HandleLoadSpecialPokePic(const struct CompressedSpriteSheet *src, void *dest, s32 species, u32 personality);
|
2017-09-02 20:08:08 +02:00
|
|
|
void HandleLoadSpecialPokePic_2(const struct CompressedSpriteSheet *src, void *dest, s32 species, u32 personality);
|
|
|
|
void HandleLoadSpecialPokePic_DontHandleDeoxys(const struct CompressedSpriteSheet *src, void *dest, s32 species, u32 personality);
|
|
|
|
|
|
|
|
void LoadSpecialPokePic(const struct CompressedSpriteSheet *src, void *dest, s32 species, u32 personality, bool8 isFrontPic);
|
2017-09-02 19:55:39 +02:00
|
|
|
void LoadSpecialPokePic_2(const struct CompressedSpriteSheet *src, void *dest, s32 species, u32 personality, bool8 isFrontPic);
|
|
|
|
void LoadSpecialPokePic_DontHandleDeoxys(const struct CompressedSpriteSheet *src, void *dest, s32 species, u32 personality, bool8 isFrontPic);
|
|
|
|
|
2018-11-07 19:35:31 +01:00
|
|
|
u32 GetDecompressedDataSize(const u32 *ptr);
|
2017-11-10 03:14:43 +01:00
|
|
|
|
2017-09-02 19:55:39 +02:00
|
|
|
#endif // GUARD_DECOMPRESS_H
|