From a86294218cb4d68426eb6e04be9485916e40ed0e Mon Sep 17 00:00:00 2001 From: "Such Meme, Many Skill" Date: Fri, 7 Feb 2020 14:45:35 +0100 Subject: [PATCH] Don't disable the emummc --- source/tegraexplorer/emmc.c | 6 ++++-- source/tegraexplorer/io.c | 4 ++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/source/tegraexplorer/emmc.c b/source/tegraexplorer/emmc.c index ba6d49b..630eda0 100644 --- a/source/tegraexplorer/emmc.c +++ b/source/tegraexplorer/emmc.c @@ -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; diff --git a/source/tegraexplorer/io.c b/source/tegraexplorer/io.c index 0b0e0d2..009c2cd 100644 --- a/source/tegraexplorer/io.c +++ b/source/tegraexplorer/io.c @@ -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);