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 12:35:31 -06:00
|
|
|
void LZDecompressWram(const u32 *src, void *dest);
|
|
|
|
void LZDecompressVram(const u32 *src, void *dest);
|
2017-09-02 20:08:08 +02:00
|
|
|
|
2018-12-17 23:00:08 +01:00
|
|
|
u16 LoadCompressedSpriteSheet(const struct CompressedSpriteSheet *src);
|
|
|
|
void LoadCompressedSpriteSheetOverrideBuffer(const struct CompressedSpriteSheet *src, void *buffer);
|
2022-07-29 11:15:33 -04:00
|
|
|
bool8 LoadCompressedSpriteSheetUsingHeap(const struct CompressedSpriteSheet *src);
|
2017-09-02 20:08:08 +02:00
|
|
|
|
2018-12-17 23:00:08 +01:00
|
|
|
void LoadCompressedSpritePalette(const struct CompressedSpritePalette *src);
|
2022-06-01 12:41:57 -04:00
|
|
|
void LoadCompressedSpritePaletteOverrideBuffer(const struct CompressedSpritePalette *src, void *buffer);
|
2018-12-17 23:00:08 +01:00
|
|
|
bool8 LoadCompressedSpritePaletteUsingHeap(const struct CompressedSpritePalette *src);
|
2017-09-02 20:08:08 +02:00
|
|
|
|
2022-07-29 10:52:35 -04:00
|
|
|
void DecompressPicFromTable(const struct CompressedSpriteSheet *src, void *buffer, s32 species);
|
2021-09-11 16:30:09 +12:00
|
|
|
void DecompressPicFromTableGender(void* buffer, s32 species, u32 personality);
|
|
|
|
|
2022-08-25 03:42:41 -04:00
|
|
|
void HandleLoadSpecialPokePic(bool32 isFrontPic, void *dest, s32 species, u32 personality);
|
2017-09-02 20:08:08 +02:00
|
|
|
|
2022-08-25 03:42:41 -04:00
|
|
|
void LoadSpecialPokePic(void *dest, s32 species, u32 personality, bool8 isFrontPic);
|
2017-09-02 19:55:39 +02:00
|
|
|
|
2018-11-07 12:35:31 -06:00
|
|
|
u32 GetDecompressedDataSize(const u32 *ptr);
|
2017-11-09 21:14:43 -05:00
|
|
|
|
2017-09-02 19:55:39 +02:00
|
|
|
#endif // GUARD_DECOMPRESS_H
|