support for all save types (system, bcat, cache, device).

This commit is contained in:
ITotalJustice
2025-06-07 17:55:04 +01:00
parent 04f6e5d2a8
commit b03ad4ade3
4 changed files with 608 additions and 386 deletions

View File

@@ -4,6 +4,7 @@
#include "ui/list.hpp"
#include "fs.hpp"
#include "option.hpp"
#include "dumper.hpp"
#include <memory>
#include <vector>
#include <span>
@@ -126,6 +127,10 @@ private:
void BackupSaves(std::vector<std::reference_wrapper<Entry>>& entries);
void RestoreSave();
auto BuildSavePath(const Entry& e, bool is_auto) const -> fs::FsPath;
Result RestoreSaveInternal(ProgressBox* pbox, const Entry& e, const fs::FsPath& path) const;
Result BackupSaveInternal(ProgressBox* pbox, const dump::DumpLocation& location, const Entry& e, bool compressed, bool is_auto = false) const;
private:
static constexpr inline const char* INI_SECTION = "saves";
@@ -138,6 +143,7 @@ private:
std::vector<AccountProfileBase> m_accounts{};
s64 m_account_index{};
u8 m_data_type{FsSaveDataType_Account};
ThreadData m_thread_data{};
Thread m_thread{};