mirror of
https://github.com/Dark98/threeSD.git
synced 2026-07-03 08:39:04 +00:00
ncch: Fix some issues with DecryptToFile
Now have byte-for-byte accuracy against Godmode9 Now uses a file instead of a path Preliminary work to support non-executable files
This commit is contained in:
@@ -479,7 +479,14 @@ bool SDMCImporter::DumpCXI(const ContentSpecifier& specifier, const std::string&
|
||||
fmt::format("{}{:08x}.app", content_path, tmd.GetBootContentID());
|
||||
dump_cxi_ncch = std::make_unique<NCCHContainer>(
|
||||
std::make_shared<SDMCFile>(config.sdmc_path, boot_content_path, "rb"));
|
||||
return dump_cxi_ncch->DecryptToFile(destination, callback) == ResultStatus::Success;
|
||||
|
||||
if (!FileUtil::CreateFullPath(destination)) {
|
||||
LOG_ERROR(Core, "Failed to create path {}", destination);
|
||||
return false;
|
||||
}
|
||||
|
||||
return dump_cxi_ncch->DecryptToFile(std::make_shared<FileUtil::IOFile>(destination, "wb"),
|
||||
callback) == ResultStatus::Success;
|
||||
}
|
||||
|
||||
void SDMCImporter::AbortDumpCXI() {
|
||||
|
||||
Reference in New Issue
Block a user