fix MountSd check

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

No files matched your search

+2 -2
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());