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:
@@ -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);
|
||||
|
||||
|
||||
@@ -45,6 +45,7 @@ typedef enum {
|
||||
INSTALL_NO_BGM,
|
||||
|
||||
INSTALL_DOWNLOAD,
|
||||
INSTALL_CHECKING_DOWNLOAD,
|
||||
INSTALL_ENTRY_DELETE,
|
||||
|
||||
INSTALL_LOADING_REMOTE_THEMES,
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user