Badge dump overhaul

This commit is contained in:
2024-06-12 18:01:25 -04:00
parent 4669f13d05
commit c3e09adcb2
10 changed files with 262 additions and 19 deletions

View File

@@ -37,6 +37,6 @@
#define BADGE_MNG_SIZE 0xD4A8
Result install_badges(void);
Result dump_badge_extdata(void);
Result extract_badges(void);
#endif

View File

@@ -6,5 +6,6 @@
size_t bin_to_abgr(char ** bufp, size_t size);
size_t png_to_abgr(char ** bufp, size_t size, u32 *height);
int pngToRGB565(char *png_buf, u64 fileSize, u16 *rgb_buf_64x64, u8 *alpha_buf_64x64, u16 *rgb_buf_32x32, u8 *alpha_buf_32x32, bool set_icon);
int rgb565ToPngFile(char *filename, u16 *rgb_buf, u8 *alpha_buf, int width, int height);
#endif

View File

@@ -58,6 +58,7 @@ typedef enum InstallType_e {
INSTALL_DUMPING_THEME,
INSTALL_DUMPING_ALL_THEMES,
INSTALL_DUMPING_BADGES,
INSTALL_BADGES,
INSTALL_NONE,
@@ -89,6 +90,7 @@ typedef enum {
TEXT_INSTALL_DUMPING_THEME,
TEXT_INSTALL_DUMPING_ALL_THEMES,
TEXT_INSTALL_DUMPING_BADGES,
TEXT_INSTALL_BADGES,
// Other text

View File

@@ -79,6 +79,7 @@ typedef struct {
const char *download_bgm;
const char *dump_single;
const char *dump_all_official;
const char *dump_badges;
const char *install_badges;
float start_pos;
const char *shuffle;