fix MountSd check

This commit is contained in:
Christoph Baumann
2025-05-22 13:34:20 +02:00
parent 5468af8934
commit 8254e56b58
2 changed files with 17 additions and 4 deletions

View File

@@ -88,8 +88,8 @@ namespace ams::nxboot {
if (R_FAILED(r = InitializeSdCard())) {
ShowFatalError("Failed to init SD card (0x%" PRIx32 ")!\n", r.GetValue());
}
if (R_FAILED(r = fs::MountSdCard())) {
ShowFatalError("Failed to mount SD card (0x%" PRIx32 ")!\n", r.GetValue());
if (!fs::MountSdCard()) {
ShowFatalError("Failed to mount SD card!\n");
}
if (R_FAILED(r = fs::ChangeDrive("sdmc:"))) {
ShowFatalError("Failed to change drive (0x%" PRIx32 ")!\n", r.GetValue());