Add support for shuffle (#3)

This commit adds support for theme shuffles.

To use, pass the first node for the theme into the install_shuffle method and it'll automatically install based on what's selected. 

Note that right now, *all themes in /Themes/ are selected for debug purposes.* This means if you have more than 10 themes in /Themes/ it will not work right now. This will be changed once an interface for selecting themes is done.
This commit is contained in:
Alex Taber
2017-07-24 09:10:44 -04:00
committed by GitHub
parent 37aa9022e1
commit 416135bac4
3 changed files with 207 additions and 1 deletions

View File

@@ -9,7 +9,8 @@ struct theme_data
u16 description[0x80];
u16 author[0x40];
char iconData[0x1200];
u16 path[533];
u16 path[524];
bool selected;
bool bgm;
};
@@ -26,5 +27,6 @@ FS_Archive ArchiveThemeExt;
Result unzip_file(char*, FS_DirectoryEntry*, u16*);
Result prepareThemes(node*);
Result themeInstall(theme_data);
Result shuffle_install(node*);
Result closeThemeArchives();
Result parseSmdh(theme_data*, u16*);