Files
Anemone3DS/source/theme.h
Alex Taber 37aa9022e1 Added splash support (#2)
Combination of quality of life improvements, bugfixes and splash support:

* unzip_file now works with any file, not just a theme

* Made linked list nodes generic so they work for both splashes and themes

* Fixed bug in previous commit with deleting the zip file once it was unzipped

* All zips in /Splashes/ are now extracted, as with /Themes/

* Splashes are all added to the linked list properly

* Splashes can be installed given a path, but only works on Luma. Undecided as to whether or not I'm going to change this.

TODO:

* Automatically change the luma configuration to enable splash screens

* MAYBE add support for other CFWs (if there's an interest). Maybe set a folder to extract splashes to in some kind of user settings?
2017-07-21 20:49:17 -04:00

31 lines
545 B
C

#pragma once
#include "minizip/unzip.h"
#include "linked_lists.h"
struct theme_data
{
u16 title[0x40];
u16 description[0x80];
u16 author[0x40];
char iconData[0x1200];
u16 path[533];
bool bgm;
};
typedef struct theme_data theme_data;
u8 regionCode;
u32 archive1;
u32 archive2;
FS_Archive ArchiveSD;
FS_Archive ArchiveHomeExt;
FS_Archive ArchiveThemeExt;
Result unzip_file(char*, FS_DirectoryEntry*, u16*);
Result prepareThemes(node*);
Result themeInstall(theme_data);
Result closeThemeArchives();
Result parseSmdh(theme_data*, u16*);