1
0
Fork 0
mirror of https://github.com/suchmememanyskill/TegraExplorer.git synced 2024-11-22 20:06:43 +00:00

Don't disable the emummc

This commit is contained in:
Such Meme, Many Skill 2020-02-07 14:45:35 +01:00
parent eecefd634c
commit a86294218c
2 changed files with 6 additions and 4 deletions

View file

@ -21,10 +21,12 @@
#include "../mem/emc.h"
#include "../mem/sdram.h"
#include "../storage/emummc.h"
#include "../config/config.h"
sdmmc_storage_t storage;
emmc_part_t *system_part;
sdmmc_t sdmmc;
extern hekate_config h_cfg;
__attribute__ ((aligned (16))) FATFS emmc;
LIST_INIT(gpt);
@ -85,12 +87,12 @@ void connect_mmc(short mmctype){
switch (mmctype){
case SYSMMC:
sdmmc_storage_init_mmc(&storage, &sdmmc, SDMMC_4, SDMMC_BUS_WIDTH_8, 4);
emu_cfg.enabled = 0;
h_cfg.emummc_force_disable = 1;
currentlyMounted = SYSMMC;
break;
case EMUMMC:
if (emummc_storage_init_mmc(&storage, &sdmmc)){
emu_cfg.enabled = 1;
h_cfg.emummc_force_disable = 0;
currentlyMounted = EMUMMC;
}
break;

View file

@ -170,9 +170,9 @@ int del_recursive(char *path){
}
while (!f_readdir(&dir, &fno) && fno.fname[0]){
if (fno.fattrib & AM_DIR)
if (fno.fattrib & AM_DIR){
del_recursive(getnextloc(localpath, fno.fname));
}
else {
gfx_box(0, y, 719, y + 16, COLOR_DEFAULT);
SWAPCOLOR(COLOR_RED);