Add main menu

This commit is contained in:
Such Meme, Many Skill
2019-08-18 20:00:16 +02:00
parent a094ac4496
commit 7a35d2b00c
8 changed files with 61 additions and 28 deletions

View File

@@ -64,16 +64,6 @@ int getfilesize(const char *path){
return fno.fsize;
}
void utils_waitforpower(){
u32 btn = btn_wait();
if (btn & BTN_VOL_UP)
reboot_rcm();
else if (btn & BTN_VOL_DOWN)
reboot_normal();
else
power_off();
}
void addchartoarray(char *add, char *items[], int spot){
size_t size = strlen(add) + 1;
items[spot] = (char*) malloc (size);