mirror of
https://github.com/Dark98/threeSD.git
synced 2026-07-03 08:39:04 +00:00
core: Add DecryptToFile in NCCHContainer
This commit is contained in:
@@ -59,9 +59,9 @@ bool SDMCDecryptor::DecryptAndWriteFile(const std::string& source, const std::st
|
||||
return false;
|
||||
}
|
||||
|
||||
auto source_file = std::make_unique<FileUtil::IOFile>(root_folder + source, "rb");
|
||||
auto source_file = std::make_shared<FileUtil::IOFile>(root_folder + source, "rb");
|
||||
auto size = source_file->GetSize();
|
||||
auto destination_file = std::make_unique<FileUtil::IOFile>(destination, "wb");
|
||||
auto destination_file = std::make_shared<FileUtil::IOFile>(destination, "wb");
|
||||
auto key = Key::GetNormalKey(Key::SDKey);
|
||||
auto ctr = GetFileCTR(source);
|
||||
return quick_decryptor.DecryptAndWriteFile(std::move(source_file), size,
|
||||
|
||||
Reference in New Issue
Block a user