Skip to content

Commit

Permalink
Use different error for /luma folder creation failure
Browse files Browse the repository at this point in the history
  • Loading branch information
TuxSH committed Jul 20, 2023
1 parent a03988b commit 11be450
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
9 changes: 8 additions & 1 deletion arm9/source/fs.c
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,14 @@ static bool switchToMainDir(bool isSd)
case FR_OK:
return true;
case FR_NO_PATH:
return f_mkdir(mainDir) == FR_OK && switchToMainDir(isSd);
{
if (f_mkdir(mainDir) != FR_OK)
{
error("Failed to create luma directory.");
return false;
}
return switchToMainDir(isSd);
}
default:
return false;
}
Expand Down
2 changes: 1 addition & 1 deletion arm9/source/utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ u32 waitInput(bool isMenu)
return key;
}

void mcuPowerOff(void)
__attribute__((noreturn)) void mcuPowerOff(void)
{
// Unmount partitions
unmountPartitions();
Expand Down

0 comments on commit 11be450

Please sign in to comment.