@@ -62,6 +62,7 @@ enum TextureID {
|
||||
TEXTURE_SHUFFLE,
|
||||
TEXTURE_INSTALLED,
|
||||
TEXTURE_PREVIEW_ICON,
|
||||
TEXTURE_SORT,
|
||||
TEXTURE_DOWNLOAD,
|
||||
TEXTURE_BROWSE,
|
||||
TEXTURE_LIST,
|
||||
|
||||
@@ -108,11 +108,11 @@ Instructions_s extra_instructions = {
|
||||
},
|
||||
{
|
||||
L"\uE07B Browse ThemePlaza",
|
||||
NULL
|
||||
L"\uE07C Sort by filename"
|
||||
},
|
||||
{
|
||||
NULL,
|
||||
NULL
|
||||
L"\uE004 Sort by name",
|
||||
L"\uE005 Sort by author"
|
||||
},
|
||||
{
|
||||
L"Exit",
|
||||
|
||||
@@ -38,6 +38,14 @@ enum ICON_IDS_OFFSET {
|
||||
ICONS_OFFSET_AMOUNT,
|
||||
};
|
||||
|
||||
typedef enum {
|
||||
SORT_NONE,
|
||||
|
||||
SORT_NAME,
|
||||
SORT_AUTHOR,
|
||||
SORT_PATH,
|
||||
} SortMode;
|
||||
|
||||
typedef struct {
|
||||
u8 _padding1[4 + 2 + 2];
|
||||
|
||||
@@ -88,6 +96,8 @@ typedef struct {
|
||||
int entries_loaded;
|
||||
int entry_size;
|
||||
|
||||
SortMode current_sort;
|
||||
|
||||
json_int_t tp_current_page;
|
||||
json_int_t tp_page_count;
|
||||
char * tp_search;
|
||||
@@ -98,6 +108,10 @@ typedef struct {
|
||||
volatile bool run_thread;
|
||||
} Thread_Arg_s;
|
||||
|
||||
void sort_by_name(Entry_List_s * list);
|
||||
void sort_by_author(Entry_List_s * list);
|
||||
void sort_by_filename(Entry_List_s * list);
|
||||
|
||||
void delete_entry(Entry_s * entry, bool is_file);
|
||||
Result load_entries(const char * loading_path, Entry_List_s * list);
|
||||
bool load_preview(Entry_List_s list, int * preview_offset);
|
||||
|
||||
Reference in New Issue
Block a user