file based emmc emummc, some other stuff
This commit is contained in:
@@ -41,7 +41,7 @@ OBJS += $(addprefix $(BUILDDIR)/$(TARGET)/, \
|
||||
bm92t36.o bq24193.o max17050.o max7762x.o max77620-rtc.o regulator_5v.o \
|
||||
touch.o joycon.o tmp451.o fan.o \
|
||||
usbd.o xusbd.o usb_descriptors.o usb_gadget_ums.o usb_gadget_hid.o \
|
||||
hw_init.o boot_storage.o sfd.o mbr_gpt.o emummc.o \
|
||||
hw_init.o boot_storage.o sfd.o mbr_gpt.o emummc_file_based.o \
|
||||
)
|
||||
|
||||
# Utilities.
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
#include <mem/heap.h>
|
||||
#include <storage/boot_storage.h>
|
||||
#include <storage/emmc.h>
|
||||
#include <storage/emummc.h>
|
||||
#include <storage/emummc_file_based.h>
|
||||
#include <storage/mbr_gpt.h>
|
||||
#include <storage/nx_emmc_bis.h>
|
||||
#include <storage/sd.h>
|
||||
|
||||
@@ -54,7 +54,7 @@ void save_emusd_cfg(u32 part_idx, u32 sector_start){
|
||||
// Add config entry.
|
||||
f_puts("[emusd]\nenabled=", &fp);
|
||||
if(sector_start){
|
||||
f_puts("1", &fp);
|
||||
f_puts("4", &fp);
|
||||
}else{
|
||||
f_puts("0", &fp);
|
||||
}
|
||||
|
||||
@@ -923,7 +923,9 @@ static void _launch_hos(u8 autoboot, u8 autoboot_list)
|
||||
|
||||
void (*main_ptr)() = (void *)nyx_str->hekate;
|
||||
|
||||
boot_storage_end();
|
||||
sd_end();
|
||||
emmc_end();
|
||||
|
||||
hw_deinit(false, 0);
|
||||
|
||||
|
||||
@@ -36,7 +36,7 @@
|
||||
#include <libs/fatfs/ff.h>
|
||||
#include <storage/boot_storage.h>
|
||||
#include <storage/emmc.h>
|
||||
#include <storage/emummc.h>
|
||||
#include <storage/emummc_file_based.h>
|
||||
#include <storage/mbr_gpt.h>
|
||||
#include <storage/sd.h>
|
||||
#include <storage/sdmmc.h>
|
||||
|
||||
@@ -224,8 +224,12 @@ static int _stat_and_copy_files(const char *src, const char *dst, char *path, u3
|
||||
|
||||
// Open directory.
|
||||
res = f_opendir(&dir, path);
|
||||
if (res != FR_OK)
|
||||
if (res != FR_OK){
|
||||
if(res == FR_NO_PATH){
|
||||
return FR_OK;
|
||||
}
|
||||
return res;
|
||||
}
|
||||
|
||||
if (labels)
|
||||
lv_label_set_text(labels[0], path);
|
||||
|
||||
Reference in New Issue
Block a user