mirror of
https://github.com/Dark98/threeSD.git
synced 2026-07-03 00:38:58 +00:00
Move EncryptionType to NCCHContainer
This commit is contained in:
@@ -17,7 +17,6 @@
|
|||||||
#include "core/db/seed_db.h"
|
#include "core/db/seed_db.h"
|
||||||
#include "core/file_sys/data/data_container.h"
|
#include "core/file_sys/data/data_container.h"
|
||||||
#include "core/file_sys/ncch_container.h"
|
#include "core/file_sys/ncch_container.h"
|
||||||
#include "core/importer.h"
|
|
||||||
#include "core/key/key.h"
|
#include "core/key/key.h"
|
||||||
|
|
||||||
namespace Core {
|
namespace Core {
|
||||||
|
|||||||
@@ -196,7 +196,17 @@ struct ExHeader_Header {
|
|||||||
|
|
||||||
static_assert(sizeof(ExHeader_Header) == 0x800, "ExHeader structure size is wrong");
|
static_assert(sizeof(ExHeader_Header) == 0x800, "ExHeader structure size is wrong");
|
||||||
|
|
||||||
enum class EncryptionType;
|
/**
|
||||||
|
* Encryption type of an importable content.
|
||||||
|
*/
|
||||||
|
enum class EncryptionType {
|
||||||
|
None,
|
||||||
|
FixedKey,
|
||||||
|
NCCHSecure1,
|
||||||
|
NCCHSecure2,
|
||||||
|
NCCHSecure3,
|
||||||
|
NCCHSecure4,
|
||||||
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Helper which implements an interface to deal with NCCH containers which can
|
* Helper which implements an interface to deal with NCCH containers which can
|
||||||
|
|||||||
+4
-12
@@ -46,18 +46,6 @@ constexpr bool IsNandTitle(ContentType type) {
|
|||||||
return type == ContentType::SystemTitle || type == ContentType::SystemApplet;
|
return type == ContentType::SystemTitle || type == ContentType::SystemApplet;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Encryption type of an importable content.
|
|
||||||
*/
|
|
||||||
enum class EncryptionType {
|
|
||||||
None,
|
|
||||||
FixedKey,
|
|
||||||
NCCHSecure1,
|
|
||||||
NCCHSecure2,
|
|
||||||
NCCHSecure3,
|
|
||||||
NCCHSecure4,
|
|
||||||
};
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Struct that specifies an importable content.
|
* Struct that specifies an importable content.
|
||||||
*/
|
*/
|
||||||
@@ -187,6 +175,10 @@ public:
|
|||||||
bool LoadTMD(ContentType type, u64 id, TitleMetadata& out) const;
|
bool LoadTMD(ContentType type, u64 id, TitleMetadata& out) const;
|
||||||
bool LoadTMD(const ContentSpecifier& specifier, TitleMetadata& out) const;
|
bool LoadTMD(const ContentSpecifier& specifier, TitleMetadata& out) const;
|
||||||
|
|
||||||
|
std::string GetTitleContentsPath(const ContentSpecifier& specifier) const;
|
||||||
|
std::shared_ptr<FileUtil::IOFile> OpenBootContent(const ContentSpecifier& specifier,
|
||||||
|
const TitleMetadata& tmd) const;
|
||||||
|
|
||||||
std::shared_ptr<TicketDB>& GetTicketDB() {
|
std::shared_ptr<TicketDB>& GetTicketDB() {
|
||||||
return ticket_db;
|
return ticket_db;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user