1
0
Fork 0
mirror of https://github.com/suchmememanyskill/TegraExplorer.git synced 2024-09-19 21:43:40 +01: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/emc.h"
#include "../mem/sdram.h" #include "../mem/sdram.h"
#include "../storage/emummc.h" #include "../storage/emummc.h"
#include "../config/config.h"
sdmmc_storage_t storage; sdmmc_storage_t storage;
emmc_part_t *system_part; emmc_part_t *system_part;
sdmmc_t sdmmc; sdmmc_t sdmmc;
extern hekate_config h_cfg;
__attribute__ ((aligned (16))) FATFS emmc; __attribute__ ((aligned (16))) FATFS emmc;
LIST_INIT(gpt); LIST_INIT(gpt);
@ -85,12 +87,12 @@ void connect_mmc(short mmctype){
switch (mmctype){ switch (mmctype){
case SYSMMC: case SYSMMC:
sdmmc_storage_init_mmc(&storage, &sdmmc, SDMMC_4, SDMMC_BUS_WIDTH_8, 4); 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; currentlyMounted = SYSMMC;
break; break;
case EMUMMC: case EMUMMC:
if (emummc_storage_init_mmc(&storage, &sdmmc)){ if (emummc_storage_init_mmc(&storage, &sdmmc)){
emu_cfg.enabled = 1; h_cfg.emummc_force_disable = 0;
currentlyMounted = EMUMMC; currentlyMounted = EMUMMC;
} }
break; break;

View file

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