Major rewrite: less repetition (#101)
* first step of rewriting: at least it compiles™ * fix tabs/spaces * fix dabort on load * fix preview crash * sorting isnt done outside of loading * step one of making remake_file useless * camera/qr code cleanup * fix dabort when folder is empty, and bring back preview optimization * fix button for switching modes and show mode when folder is empty * fix scanning qrs * no more splash discrimination * add debug helpers * fix theme installing turns out that wasnt such a good idea * fix battery icon * mistake * themeplaza compatibility * make use of load_data * don't drink and copy-paste, kids * fix user-agent * remove useless * cleanup includes * not even used * add splash buttons * upgrade buttons drawing * fix controls while preview is up * improve positions
This commit is contained in:
@@ -28,33 +28,12 @@
|
||||
#define THEMES_H
|
||||
|
||||
#include "common.h"
|
||||
#include "loading.h"
|
||||
|
||||
typedef struct {
|
||||
u16 name[0x41];
|
||||
u16 desc[0x81];
|
||||
u16 author[0x41];
|
||||
|
||||
u32 placeholder_color;
|
||||
ssize_t icon_id;
|
||||
|
||||
bool has_preview;
|
||||
int preview_offset;
|
||||
|
||||
u16 path[0x106];
|
||||
bool is_zip;
|
||||
|
||||
bool in_shuffle;
|
||||
} Theme_s;
|
||||
void delete_theme(Entry_s theme);
|
||||
Result theme_install(Entry_s theme);
|
||||
|
||||
Theme_s * themes_list;
|
||||
int theme_count;
|
||||
|
||||
void load_theme_preview(Theme_s *theme);
|
||||
Result get_themes(Theme_s **themes_list, int *theme_count);
|
||||
int themecmp(const void* a, const void* b);
|
||||
void del_theme(u16 *path);
|
||||
Result single_install(Theme_s theme);
|
||||
Result shuffle_install(Theme_s *themes_list, int theme_count);
|
||||
Result bgm_install(Theme_s bgm_to_install);
|
||||
Result shuffle_install(Entry_s* themes_list, int themes_count);
|
||||
Result bgm_install(Entry_s bgm_to_install);
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user