Merge pull request #262 from LiquidFenrir/better-dump

add ability to dump all your official themes
This commit is contained in:
Dylan G
2022-02-26 16:02:55 +00:00
committed by GitHub
9 changed files with 289 additions and 15 deletions

View File

@@ -56,6 +56,7 @@ typedef enum {
INSTALL_LOADING_REMOTE_BGM,
INSTALL_DUMPING_THEME,
INSTALL_DUMPING_ALL_THEMES,
INSTALL_NONE,
} InstallType;
@@ -84,6 +85,7 @@ typedef enum {
TEXT_INSTALL_LOADING_REMOTE_BGM,
TEXT_INSTALL_DUMPING_THEME,
TEXT_INSTALL_DUMPING_ALL_THEMES,
// Other text
TEXT_VERSION,

View File

@@ -29,6 +29,8 @@
#include "common.h"
#define ILLEGAL_CHARS "><\"?;:/\\+,.|[=]"
extern FS_Archive ArchiveSD;
extern FS_Archive ArchiveHomeExt;
extern FS_Archive ArchiveThemeExt;

View File

@@ -128,11 +128,11 @@ Instructions_s extra_instructions[3] = {
},
{
"\uE07B Browse ThemePlaza",
"\uE07C Dump Current Theme"
NULL
},
{
"\uE004 Sorting menu",
NULL
"\uE005 Dumping menu"
},
{
"Exit",
@@ -140,6 +140,27 @@ Instructions_s extra_instructions[3] = {
}
}
},
{
.info_line = "Release \uE002 to cancel or hold \uE006 and release \uE002 to dump",
.instructions = {
{
"\uE079 Dump Current Theme",
"\uE07A Dump All Themes"
},
{
NULL,
NULL
},
{
NULL,
NULL
},
{
"Exit",
NULL
}
}
}
};
#endif

View File

@@ -76,7 +76,8 @@ Result bgm_install(Entry_s theme);
Result shuffle_install(Entry_List_s themes);
Result dump_theme(void);
Result dump_current_theme(void);
Result dump_all_themes(void);
void themes_check_installed(void * void_arg);