diff --git a/source/ui/mainmenu.c b/source/ui/mainmenu.c index 57b87f1..053f108 100644 --- a/source/ui/mainmenu.c +++ b/source/ui/mainmenu.c @@ -8,13 +8,14 @@ #include "section/section.h" #include "../screen.h" -#define MAINMENU_ITEM_COUNT 11 +#define MAINMENU_ITEM_COUNT 12 static u32 mainmenu_item_count = MAINMENU_ITEM_COUNT; static list_item mainmenu_items[MAINMENU_ITEM_COUNT] = { {"SD", 0xFF000000, files_open_sd}, {"CTR NAND", 0xFF000000, files_open_ctr_nand}, {"TWL NAND", 0xFF000000, files_open_twl_nand}, + {"TWL Photo", 0xFF000000, files_open_twl_photo}, {"Dump NAND", 0xFF000000, dump_nand}, {"Titles", 0xFF000000, titles_open}, {"Pending Titles", 0xFF000000, pendingtitles_open}, diff --git a/source/ui/section/files.c b/source/ui/section/files.c index 22f3f7e..6e19b72 100644 --- a/source/ui/section/files.c +++ b/source/ui/section/files.c @@ -275,4 +275,9 @@ void files_open_ctr_nand() { void files_open_twl_nand() { FS_Archive sdmcArchive = {ARCHIVE_NAND_TWL_FS, fsMakePath(PATH_EMPTY, "")}; files_open(sdmcArchive); +} + +void files_open_twl_photo() { + FS_Archive sdmcArchive = {ARCHIVE_TWL_PHOTO, fsMakePath(PATH_EMPTY, "")}; + files_open(sdmcArchive); } \ No newline at end of file diff --git a/source/ui/section/section.h b/source/ui/section/section.h index b14dac3..db0f299 100644 --- a/source/ui/section/section.h +++ b/source/ui/section/section.h @@ -8,6 +8,7 @@ void files_open(FS_Archive archive); void files_open_sd(); void files_open_ctr_nand(); void files_open_twl_nand(); +void files_open_twl_photo(); void networkinstall_open(FS_MediaType dest); void networkinstall_open_sd(); void networkinstall_open_nand();