adds dynamic preview loading and silence minizip warnings (#11)
* make use of the return value for safety * get rid of warnings (sizeof(wchar_t) is the same as sizeof(u32), so no problem there) * dynamic preview loading fix crash when too many themes have previews available
This commit is contained in:
@@ -41,7 +41,7 @@ enum TextureID {
|
||||
TEXTURE_FONT_RESERVED = 0, //used by pp2d for the font
|
||||
TEXTURE_ARROW,
|
||||
TEXTURE_SHUFFLE,
|
||||
MAX_TEXTURE,
|
||||
TEXTURE_PREVIEW,
|
||||
};
|
||||
|
||||
#endif
|
||||
@@ -38,14 +38,14 @@ typedef struct {
|
||||
ssize_t icon_id;
|
||||
|
||||
bool has_preview;
|
||||
ssize_t preview_id;
|
||||
|
||||
u16 path[262];
|
||||
u16 path[0x106];
|
||||
bool is_zip;
|
||||
|
||||
bool in_shuffle;
|
||||
} Theme_s;
|
||||
|
||||
void load_theme_preview(Theme_s *theme);
|
||||
Result get_themes(Theme_s **themes_list, int *theme_count);
|
||||
Result single_install(Theme_s theme);
|
||||
Result shuffle_install(Theme_s *themes_list, int theme_count);
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
|
||||
#include "common.h"
|
||||
|
||||
ssize_t strulen(u16*, ssize_t);
|
||||
ssize_t strulen(const u16*, ssize_t);
|
||||
void struacat(u16 *input, const char *addition);
|
||||
void printu(u16 *input);
|
||||
u16 *strucat(u16 *destination, const u16 *source);
|
||||
|
||||
Reference in New Issue
Block a user