Generalize QuickDecryptor

This commit is contained in:
Pengfei
2021-07-31 17:25:56 +08:00
parent 7115c30f76
commit 75f79e10d1
5 changed files with 74 additions and 45 deletions
+2 -2
View File
@@ -196,8 +196,8 @@ bool SDMCImporter::ImportNandTitle(const ContentSpecifier& specifier,
LOG_ERROR(Core, "Could not create path {}", citra_path);
return false;
}
// Do not specify keys: plain copy with progress.
return quick_decryptor.DecryptAndWriteFile(
// Crypto is not set: plain copy with progress.
return quick_decryptor.CryptAndWriteFile(
std::make_shared<FileUtil::IOFile>(physical_path, "rb"),
FileUtil::GetSize(physical_path),
std::make_shared<FileUtil::IOFile>(citra_path, "wb"), callback);