mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-24 14:49:42 -06:00
IOS/ES: Implement ES_Export* ioctlvs
This should allow channels to be copied to the SD properly.
This commit is contained in:
@ -161,6 +161,14 @@ bool CNANDContentLoader::IsValid() const
|
||||
return m_Valid && m_tmd.IsValid();
|
||||
}
|
||||
|
||||
const SNANDContent* CNANDContentLoader::GetContentByID(u32 id) const
|
||||
{
|
||||
const auto iterator = std::find_if(m_Content.begin(), m_Content.end(), [id](const auto& content) {
|
||||
return content.m_metadata.id == id;
|
||||
});
|
||||
return iterator != m_Content.end() ? &*iterator : nullptr;
|
||||
}
|
||||
|
||||
const SNANDContent* CNANDContentLoader::GetContentByIndex(int index) const
|
||||
{
|
||||
for (auto& Content : m_Content)
|
||||
|
@ -79,6 +79,7 @@ public:
|
||||
|
||||
bool IsValid() const;
|
||||
void RemoveTitle() const;
|
||||
const SNANDContent* GetContentByID(u32 id) const;
|
||||
const SNANDContent* GetContentByIndex(int index) const;
|
||||
const IOS::ES::TMDReader& GetTMD() const { return m_tmd; }
|
||||
const IOS::ES::TicketReader& GetTicket() const { return m_ticket; }
|
||||
|
Reference in New Issue
Block a user