mirror of
https://github.com/suchmememanyskill/TegraExplorer.git
synced 2024-11-09 21:51:48 +00:00
Add check for unmounted SD card in emmc (#26)
* Add check for unmounted SD card * Implement it the better way and remove message Meme doesn't like * Remove comma and remove dump option if no sd is inserted Hopefully the last commit to this PR. Hopefully.
This commit is contained in:
parent
0991c73c60
commit
4b445d6c9c
2 changed files with 12 additions and 5 deletions
|
@ -28,6 +28,7 @@ extern sdmmc_storage_t storage;
|
||||||
extern emmc_part_t *system_part;
|
extern emmc_part_t *system_part;
|
||||||
extern char *clipboard;
|
extern char *clipboard;
|
||||||
extern u8 clipboardhelper;
|
extern u8 clipboardhelper;
|
||||||
|
extern bool sd_mounted;
|
||||||
|
|
||||||
|
|
||||||
void addEntry(emmc_part_t *part, u8 property_GPT, int spot){
|
void addEntry(emmc_part_t *part, u8 property_GPT, int spot){
|
||||||
|
@ -73,6 +74,12 @@ int fillMmcMenu(short mmcType){
|
||||||
|
|
||||||
mu_createObjects(count, &mmcMenuEntries);
|
mu_createObjects(count, &mmcMenuEntries);
|
||||||
|
|
||||||
|
if (!sd_mounted)
|
||||||
|
sd_mount();
|
||||||
|
|
||||||
|
SETBIT(mmcmenu_filemenu[3].property, ISHIDE, !sd_mounted);
|
||||||
|
SETBIT(mmcmenu_start[1].property, ISHIDE, !sd_mounted);
|
||||||
|
|
||||||
for (i = 0; i < 4; i++)
|
for (i = 0; i < 4; i++)
|
||||||
mu_copySingle(mmcmenu_start[i].name, mmcmenu_start[i].storage, mmcmenu_start[i].property, &mmcMenuEntries[i]);
|
mu_copySingle(mmcmenu_start[i].name, mmcmenu_start[i].storage, mmcmenu_start[i].property, &mmcMenuEntries[i]);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue