mirror of
https://github.com/Huntereb/Awoo-Installer
synced 2025-02-17 04:08:23 +00:00
47 lines
No EOL
1.1 KiB
C++
Executable file
47 lines
No EOL
1.1 KiB
C++
Executable file
#pragma once
|
|
|
|
extern "C"
|
|
{
|
|
#include <switch/services/fs.h>
|
|
}
|
|
|
|
#include <memory>
|
|
#include <tuple>
|
|
#include <vector>
|
|
|
|
#include "install/simple_filesystem.hpp"
|
|
#include "data/byte_buffer.hpp"
|
|
|
|
#include "nx/content_meta.hpp"
|
|
#include "nx/ipc/tin_ipc.h"
|
|
|
|
namespace tin::install
|
|
{
|
|
class Install
|
|
{
|
|
protected:
|
|
const FsStorageId m_destStorageId;
|
|
bool m_ignoreReqFirmVersion = false;
|
|
|
|
nx::ncm::ContentMeta m_contentMeta;
|
|
|
|
Install(FsStorageId destStorageId, bool ignoreReqFirmVersion);
|
|
virtual ~Install();
|
|
|
|
virtual std::tuple<nx::ncm::ContentMeta, NcmContentInfo> ReadCNMT() = 0;
|
|
|
|
virtual void InstallContentMetaRecords(tin::data::ByteBuffer& installContentMetaBuf);
|
|
virtual void InstallApplicationRecord();
|
|
virtual void InstallTicketCert() = 0;
|
|
virtual void InstallNCA(const NcmContentId &ncaId) = 0;
|
|
|
|
public:
|
|
virtual void Prepare();
|
|
virtual void Begin();
|
|
|
|
virtual u64 GetTitleId();
|
|
virtual NcmContentMetaType GetContentMetaType();
|
|
|
|
virtual void DebugPrintInstallData();
|
|
};
|
|
} |