mirror of
https://github.com/Dark98/threeSD.git
synced 2026-07-03 00:38:58 +00:00
Add support for title.db, and use title.db to augment TMD finding
Also added support for system title CIA building, and fixed various minor issues. Also moved MakeMagic to Common.
This commit is contained in:
@@ -207,6 +207,13 @@ const TitleMetadata::ContentChunk& TitleMetadata::GetContentChunkByID(u32 conten
|
||||
return *it;
|
||||
}
|
||||
|
||||
bool TitleMetadata::HasContentID(u32 content_id) const {
|
||||
const auto it =
|
||||
std::find_if(tmd_chunks.begin(), tmd_chunks.end(),
|
||||
[content_id](const ContentChunk& chunk) { return chunk.id == content_id; });
|
||||
return it != tmd_chunks.end();
|
||||
}
|
||||
|
||||
void TitleMetadata::AddContentChunk(const ContentChunk& chunk) {
|
||||
tmd_chunks.push_back(chunk);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user