From 986ffdcd9cff2d726834065638ae86cef9d7a822 Mon Sep 17 00:00:00 2001 From: ITotalJustice <47043333+ITotalJustice@users.noreply.github.com> Date: Sat, 21 Dec 2024 18:04:19 +0000 Subject: [PATCH] remove option to set archive bit in filebrowser removed as likely no one needs this feature, and an cause problems for users that do not know what they're doing --- sphaira/source/ui/menus/filebrowser.cpp | 37 ------------------------- 1 file changed, 37 deletions(-) diff --git a/sphaira/source/ui/menus/filebrowser.cpp b/sphaira/source/ui/menus/filebrowser.cpp index 900dc2c..b6c694f 100644 --- a/sphaira/source/ui/menus/filebrowser.cpp +++ b/sphaira/source/ui/menus/filebrowser.cpp @@ -624,43 +624,6 @@ Menu::Menu(const std::vector& nro_entries) : MenuBase{"FileBrowser"_i1 } })); } - - if (HasTypeInSelectedEntries(FsDirEntryType_Dir)) { - options->Add(std::make_shared("Set Archive Bit"_i18n, [this](){ - if (!m_selected_count) { - AddCurrentFileToSelection(SelectedType::None); - } else { - AddSelectedEntries(SelectedType::None); - } - - App::Push(std::make_shared( - "Warning! Setting the archive bit cannot be undone!"_i18n, - "No"_i18n, "Yes"_i18n, 1, [this](auto op_index) { - if (op_index && *op_index == 1) { - bool re_sort{}; - for (const auto&p : m_selected_files) { - const auto file_path = GetNewPath(m_selected_path, p.name); - if (p.IsDir()) { - fs::FsNativeSd fs; - if (R_SUCCEEDED(fsFsSetConcatenationFileAttribute(&fs.m_fs, file_path))) { - log_write("updated timestamp\n"); - re_sort |= true; - } else { - log_write("failed to set concatenation file attribute\n"); - } - } - } - - if (re_sort) { - Scan(m_path); - } - } - } - )); - - ResetSelection(); - }, true)); - } } })); }})