2019-08-14 20:29:04 +01:00
|
|
|
#include <string.h>
|
|
|
|
#include "../gfx/di.h"
|
|
|
|
#include "../gfx/gfx.h"
|
|
|
|
#include "../utils/btn.h"
|
|
|
|
#include "utils.h"
|
|
|
|
#include "main.h"
|
2019-08-15 21:16:48 +01:00
|
|
|
#include "mainfunctions.h"
|
2019-08-14 23:24:58 +01:00
|
|
|
#include "../libs/fatfs/ff.h"
|
|
|
|
#include "../storage/sdmmc.h"
|
2019-08-15 21:16:48 +01:00
|
|
|
#include "graphics.h"
|
2019-08-14 23:24:58 +01:00
|
|
|
|
2019-08-14 20:29:04 +01:00
|
|
|
void meme_main(){
|
|
|
|
utils_gfx_init();
|
2019-08-15 21:16:48 +01:00
|
|
|
//static const u32 colors[7] = {COLOR_RED, COLOR_ORANGE, COLOR_YELLOW, COLOR_GREEN, COLOR_BLUE, COLOR_VIOLET, COLOR_DEFAULT};
|
|
|
|
//gfx_printf("%k%pTegraExplorer, made by SuchMemeManySkill \n%k%p", colors[6], colors[3], colors[3], colors[6]);
|
|
|
|
/*
|
2019-08-14 23:24:58 +01:00
|
|
|
sdmmc_storage_t storage;
|
|
|
|
sdmmc_t sdmmc;
|
|
|
|
|
|
|
|
sdmmc_storage_init_mmc(&storage, &sdmmc, SDMMC_4, SDMMC_BUS_WIDTH_8, 4);
|
|
|
|
sdmmc_storage_set_mmc_partition(&storage, 1);
|
2019-08-15 21:16:48 +01:00
|
|
|
*/
|
2019-08-14 23:24:58 +01:00
|
|
|
//f_rename("sd:/yeet.txt", "sd:/yote.txt");
|
2019-08-14 23:42:41 +01:00
|
|
|
|
2019-08-15 21:16:48 +01:00
|
|
|
char *itemsinfolder[500];
|
|
|
|
unsigned int muhbits[500];
|
2019-08-14 23:42:41 +01:00
|
|
|
|
2019-08-15 21:16:48 +01:00
|
|
|
sdexplorer(itemsinfolder, muhbits);
|
2019-08-14 23:24:58 +01:00
|
|
|
|
2019-08-15 21:23:56 +01:00
|
|
|
gfx_printf("%k\n\nExited main loop, vol+ to reboot to rcm\nvol- to reboot normally\npower to power off", COLOR_GREEN);
|
2019-08-14 23:24:58 +01:00
|
|
|
|
2019-08-14 20:29:04 +01:00
|
|
|
utils_waitforpower();
|
|
|
|
}
|