allow emmc writes (to write warmboot to emusd), allow unaligned emmc writes

This commit is contained in:
Christoph Baumann
2025-05-20 23:52:02 +02:00
parent b301bba5e7
commit 77a01f0a9b
7 changed files with 12 additions and 14 deletions

View File

@@ -191,7 +191,7 @@ namespace ams::nxboot {
/* Create partition */
/* TODO: construct boot0 storage from path instead */
g_boot0_storage = AllocateObject<fs::FileHandleStorage>(boot0_file);
g_user_storage = AllocateObject<EmummcFileStorage>(path);
g_user_storage = AllocateObject<EmummcFileStorage>(path, fs::OpenMode_Read);
} else {
ShowFatalError("Unknown emummc type %d\n", static_cast<int>(emummc_cfg.base_cfg.type));
}