mount hdd by default, add hdd write protect option.

This commit is contained in:
ITotalJustice
2025-05-26 19:25:09 +01:00
parent 793b36fd59
commit 3ca82463cc
5 changed files with 45 additions and 4 deletions

View File

@@ -1192,11 +1192,15 @@ void FsView::OnDeleteCallback() {
bool empty{};
m_fs->IsDirEmpty(full_path, &empty);
if (empty) {
m_fs->DeleteDirectory(full_path);
if (auto rc = m_fs->DeleteDirectory(full_path); R_FAILED(rc)) {
App::PushErrorBox(rc, "Failed to delete directory"_i18n);
}
use_progress_box = false;
}
} else {
m_fs->DeleteFile(full_path);
if (auto rc = m_fs->DeleteFile(full_path); R_FAILED(rc)) {
App::PushErrorBox(rc, "Failed to delete file"_i18n);
}
use_progress_box = false;
}
}