Refactor InnerFAT into Savegame and Extdata

And derive TitleDB from it too.
This commit is contained in:
Pengfei
2021-07-06 16:11:03 +08:00
parent 184d73d465
commit c81db424bb
13 changed files with 711 additions and 714 deletions
+5 -4
View File
@@ -10,9 +10,10 @@
#include <QtConcurrent/QtConcurrentRun>
#include "core/data_container.h"
#include "core/decryptor.h"
#include "core/inner_fat.h"
#include "core/extdata.h"
#include "core/key/key.h"
#include "core/ncch/ncch_container.h"
#include "core/savegame.h"
#include "frontend/select_files_dialog.h"
#include "frontend/utilities.h"
#include "ui_utilities.h"
@@ -211,7 +212,7 @@ void UtilitiesDialog::SaveDataExtractionTool() {
return false;
}
Core::SDSavegame save(std::move(container_data));
Core::Savegame save(std::move(container_data));
if (!save.IsGood()) {
return false;
}
@@ -237,7 +238,7 @@ void UtilitiesDialog::SaveDataExtractionTool() {
return false;
}
Core::SDSavegame save(std::move(container_data));
Core::Savegame save(std::move(container_data));
if (!save.IsGood()) {
return false;
}
@@ -264,7 +265,7 @@ void UtilitiesDialog::ExtdataExtractionTool() {
ShowProgressDialog(
[sdmc_root = sdmc_root, relative_source = relative_source, destination = destination] {
Core::SDMCDecryptor decryptor(sdmc_root);
Core::SDExtdata extdata(relative_source, decryptor);
Core::Extdata extdata(relative_source, decryptor);
if (!extdata.IsGood()) {
return false;
}