Remove IsNandTitle

This commit is contained in:
Pengfei
2021-08-27 12:11:00 +08:00
parent 3ecbaec22d
commit 5fad7c0243
3 changed files with 7 additions and 9 deletions
+5 -4
View File
@@ -831,7 +831,7 @@ void ImportDialog::StartBatchDumpingCXI() {
void ImportDialog::StartBuildingCIASingle(const Core::ContentSpecifier& specifier) {
CIABuildDialog dialog(this,
/*is_dir*/ false,
/*is_nand*/ Core::IsNandTitle(specifier.type),
/*is_nand*/ specifier.type == Core::ContentType::NandTitle,
/*enable_legit*/ importer->CanBuildLegitCIA(specifier),
last_build_cia_path);
if (dialog.exec() != QDialog::Accepted) {
@@ -875,9 +875,10 @@ void ImportDialog::StartBatchBuildingCIA() {
to_import.erase(removed_iter, to_import.end());
const bool is_nand = std::all_of(
to_import.begin(), to_import.end(),
[](const Core::ContentSpecifier& specifier) { return Core::IsNandTitle(specifier.type); });
const bool is_nand = std::all_of(to_import.begin(), to_import.end(),
[](const Core::ContentSpecifier& specifier) {
return specifier.type == Core::ContentType::NandTitle;
});
const bool enable_legit = std::all_of(to_import.begin(), to_import.end(),
[this](const Core::ContentSpecifier& specifier) {
return importer->CanBuildLegitCIA(specifier);