More refactor going on

This commit is contained in:
Pengfei
2021-08-04 11:25:39 +08:00
parent 0abddb7e79
commit 1fe45d890c
13 changed files with 55 additions and 54 deletions
+1 -1
View File
@@ -2,9 +2,9 @@
// Licensed under GPLv2 or any later version
// Refer to the license.txt file included.
#include "core/decryptor.h"
#include "core/file_sys/data/data_container.h"
#include "core/file_sys/data/extdata.h"
#include "core/sdmc_decryptor.h"
namespace Core {
+1 -1
View File
@@ -442,7 +442,7 @@ bool NCCHContainer::DecryptToFile(std::shared_ptr<FileUtil::IOFile> dest_file,
}
if (!is_encrypted) {
// Simply copy everything. QuickDecryptor is used for progress reporting
// Simply copy everything. FileDecryptor is used for progress reporting
file->Seek(0, SEEK_SET);
const auto size = file->GetSize();
+2 -2
View File
@@ -13,7 +13,7 @@
#include "common/file_util.h"
#include "common/progress_callback.h"
#include "common/swap.h"
#include "core/decryptor.h"
#include "core/sdmc_decryptor.h"
namespace Core {
@@ -305,7 +305,7 @@ private:
std::shared_ptr<FileUtil::IOFile> exefs_file;
// Used for DecryptToFile
QuickDecryptor decryptor;
FileDecryptor decryptor;
std::atomic_bool aborted{false};
friend class CIABuilder;