diff options
author | Diegoisawesome <Diegoisawesome@users.noreply.github.com> | 2018-02-07 12:59:40 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-07 12:59:40 -0600 |
commit | ccae0ee97063d6a159358d6ce3ee93d12ceb17f4 (patch) | |
tree | 4448f6f86ad2f6e81e0ec02961e0833e2c72f346 /include/item_icon.h | |
parent | 1ae5adbb19868b4149bb9b3df0d9f26aeedceaa1 (diff) | |
parent | a61dc815b0f8f8fa3c1eabcb2edabd04f3ad7ce6 (diff) |
Merge pull request #198 from DizzyEggg/decompile_item_icon
decompile item icon
Diffstat (limited to 'include/item_icon.h')
-rw-r--r-- | include/item_icon.h | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/include/item_icon.h b/include/item_icon.h index a43b72f39..b702b2045 100644 --- a/include/item_icon.h +++ b/include/item_icon.h @@ -1,17 +1,16 @@ -// -// Created by scott on 10/20/2017. -// - #ifndef GUARD_ITEM_ICON_H #define GUARD_ITEM_ICON_H -extern EWRAM_DATA void *gUnknown_0203CEBC; -extern EWRAM_DATA void *gUnknown_0203CEC0; +extern void *gItemIconDecompressionBuffer; +extern void *gItemIcon4x4Buffer; -extern const struct SpriteTemplate gUnknown_08614FF4; +extern const struct SpriteTemplate gItemIconSpriteTemplate; bool8 AllocItemIconTemporaryBuffers(void); -void CopyItemIconPicTo4x4Buffer(void *src, void *dest); void FreeItemIconTemporaryBuffers(void); +void CopyItemIconPicTo4x4Buffer(const void *src, void *dest); +u8 AddItemIconSprite(u16 tilesTag, u16 paletteTag, u16 itemId); +u8 AddCustomItemIconSprite(struct SpriteTemplate *customSpriteTemplate, u16 tilesTag, u16 paletteTag, u16 itemId); +const void *GetItemIconPicOrPalette(u16 itemId, u8 which); #endif //GUARD_ITEM_ICON_H |