file based emmc emummc, some other stuff

This commit is contained in:
Christoph Baumann committed 2025-05-12 01:24:01 +02:00
1 parent 79b6df64d6
commit 76508c74e8
14 files changed
+143 -113

No files matched your search

+1 -1
View File
@@ -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.
+1 -1
View File
@@ -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>
+1 -1
View File
@@ -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);
}
+2
View File
@@ -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);
+1 -1
View File
@@ -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);