Reduce file size + cleanup + add coreboot.rom file booting

This commit is contained in:
Such Meme, Many Skill
2020-04-26 01:20:26 +02:00
parent bd99e2a138
commit 317e4b2038
3 changed files with 47 additions and 40 deletions

View File

@@ -47,7 +47,7 @@ void viewbytes(char *path){
return;
}
msleep(200);
while (btn_read() & BTN_POWER);
while (1){
f_lseek(&in, offset * 16);
@@ -143,9 +143,9 @@ int filemenu(menu_entry file){
(attribs.fattrib & AM_ARC) ? 'A' : '-');
}
SETBIT(fs_menu_file[7].property, ISHIDE, !(strstr(file.name, ".bin") != NULL && file.property & ISKB));
SETBIT(fs_menu_file[8].property, ISHIDE, !(strstr(file.name, ".te") != NULL));
SETBIT(fs_menu_file[10].property, ISHIDE, !(strstr(file.name, ".bis") != NULL));
SETBIT(fs_menu_file[7].property, ISHIDE, !(strstr(file.name, ".bin") != NULL && file.property & ISKB) && strstr(file.name, ".rom") == NULL);
SETBIT(fs_menu_file[8].property, ISHIDE, strstr(file.name, ".te") == NULL);
SETBIT(fs_menu_file[10].property, ISHIDE, strstr(file.name, ".bis") == NULL);
temp = menu_make(fs_menu_file, 11, "-- File Menu --");