Switch to libarchive and camera autodetect between splashes and themes (#142)

* switch to libarchive and get rid of minizip, introduce zip_memory_to_buf

* automatically detect whether the downloaded zip is a splash or a theme

* slightly simpler way
This commit is contained in:
LiquidFenrir
2018-04-01 22:21:31 +02:00
committed by GitHub
parent a2b5788fe8
commit cd69aa7ef7
16 changed files with 141 additions and 3261 deletions

View File

@@ -41,7 +41,7 @@ typedef struct {
struct quirc* context;
} qr_data;
bool init_qr(EntryMode current_mode);
bool init_qr(void);
void exit_qr(qr_data *data);
void take_picture(void);

View File

@@ -45,6 +45,7 @@ typedef enum {
INSTALL_NO_BGM,
INSTALL_DOWNLOAD,
INSTALL_CHECKING_DOWNLOAD,
INSTALL_ENTRY_DELETE,
INSTALL_LOADING_REMOTE_THEMES,

View File

@@ -37,6 +37,7 @@ Result open_archives(void);
Result close_archives(void);
u32 file_to_buf(FS_Path path, FS_Archive archive, char** buf);
u32 zip_memory_to_buf(char *file_name, void * zip_memory, size_t zip_size, char ** buf);
u32 zip_file_to_buf(char *file_name, u16 *zip_path, char **buf);
Result buf_to_file(u32 size, char *path, FS_Archive archive, char *buf);