2019-10-18 03:59:34 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <switch.h>
|
|
|
|
#include "install/install.hpp"
|
|
|
|
#include "install/simple_filesystem.hpp"
|
|
|
|
#include "nx/content_meta.hpp"
|
|
|
|
#include "nx/ipc/tin_ipc.h"
|
|
|
|
|
|
|
|
namespace tin::install::nsp
|
|
|
|
{
|
|
|
|
class NSPInstallTask : public Install
|
|
|
|
{
|
|
|
|
private:
|
|
|
|
tin::install::nsp::SimpleFileSystem* const m_simpleFileSystem;
|
|
|
|
|
|
|
|
protected:
|
|
|
|
std::tuple<nx::ncm::ContentMeta, NcmContentInfo> ReadCNMT() override;
|
2019-10-25 01:33:41 +00:00
|
|
|
void InstallNCA(const NcmContentId& ncaId) override;
|
2019-10-18 03:59:34 +00:00
|
|
|
void InstallTicketCert() override;
|
|
|
|
|
|
|
|
public:
|
|
|
|
NSPInstallTask(tin::install::nsp::SimpleFileSystem& simpleFileSystem, FsStorageId destStorageId, bool ignoreReqFirmVersion);
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|