[APP] Create and Extract Zarchive packages

This commit is contained in:
Adrian
2024-04-10 15:57:15 +01:00
committed by Radosław Gliński
parent 06d7a5f0a3
commit 0fcdc12cb9
7 changed files with 389 additions and 34 deletions

View File

@@ -226,6 +226,21 @@ class Emulator {
// Extract content of package to content specific directory.
X_STATUS InstallContentPackage(const std::filesystem::path& path);
// Extract content of zar package to desired directory.
X_STATUS Emulator::ExtractZarchivePackage(
const std::filesystem::path& path,
const std::filesystem::path& extract_dir);
// Pack contents of a folder into a zar package.
X_STATUS CreateZarchivePackage(const std::filesystem::path& inputDirectory,
const std::filesystem::path& outputFile);
struct PackContext {
std::filesystem::path outputFilePath;
std::ofstream currentOutputFile;
bool hasError{false};
};
void Pause();
void Resume();
bool is_paused() const { return paused_; }