Add TWL photo access.

This commit is contained in:
Steven Smith 2016-04-10 01:01:17 -07:00
parent e49145d84d
commit 178210b0db
3 changed files with 8 additions and 1 deletions

View File

@ -8,13 +8,14 @@
#include "section/section.h" #include "section/section.h"
#include "../screen.h" #include "../screen.h"
#define MAINMENU_ITEM_COUNT 11 #define MAINMENU_ITEM_COUNT 12
static u32 mainmenu_item_count = MAINMENU_ITEM_COUNT; static u32 mainmenu_item_count = MAINMENU_ITEM_COUNT;
static list_item mainmenu_items[MAINMENU_ITEM_COUNT] = { static list_item mainmenu_items[MAINMENU_ITEM_COUNT] = {
{"SD", 0xFF000000, files_open_sd}, {"SD", 0xFF000000, files_open_sd},
{"CTR NAND", 0xFF000000, files_open_ctr_nand}, {"CTR NAND", 0xFF000000, files_open_ctr_nand},
{"TWL NAND", 0xFF000000, files_open_twl_nand}, {"TWL NAND", 0xFF000000, files_open_twl_nand},
{"TWL Photo", 0xFF000000, files_open_twl_photo},
{"Dump NAND", 0xFF000000, dump_nand}, {"Dump NAND", 0xFF000000, dump_nand},
{"Titles", 0xFF000000, titles_open}, {"Titles", 0xFF000000, titles_open},
{"Pending Titles", 0xFF000000, pendingtitles_open}, {"Pending Titles", 0xFF000000, pendingtitles_open},

View File

@ -276,3 +276,8 @@ void files_open_twl_nand() {
FS_Archive sdmcArchive = {ARCHIVE_NAND_TWL_FS, fsMakePath(PATH_EMPTY, "")}; FS_Archive sdmcArchive = {ARCHIVE_NAND_TWL_FS, fsMakePath(PATH_EMPTY, "")};
files_open(sdmcArchive); files_open(sdmcArchive);
} }
void files_open_twl_photo() {
FS_Archive sdmcArchive = {ARCHIVE_TWL_PHOTO, fsMakePath(PATH_EMPTY, "")};
files_open(sdmcArchive);
}

View File

@ -8,6 +8,7 @@ void files_open(FS_Archive archive);
void files_open_sd(); void files_open_sd();
void files_open_ctr_nand(); void files_open_ctr_nand();
void files_open_twl_nand(); void files_open_twl_nand();
void files_open_twl_photo();
void networkinstall_open(FS_MediaType dest); void networkinstall_open(FS_MediaType dest);
void networkinstall_open_sd(); void networkinstall_open_sd();
void networkinstall_open_nand(); void networkinstall_open_nand();