CDImagePPF: Precache underlying image when requested

This commit is contained in:
Connor McLaughlin 2022-07-23 13:00:45 +10:00
parent 65991899eb
commit 8d7fdae683
1 changed files with 7 additions and 0 deletions

View File

@ -29,6 +29,8 @@ public:
std::string GetMetadata(const std::string_view& type) const override;
std::string GetSubImageMetadata(u32 index, const std::string_view& type) const override;
PrecacheResult Precache(ProgressCallback* progress = ProgressCallback::NullProgressCallback) override;
protected:
bool ReadSectorFromIndex(void* buffer, const Index& index, LBA lba_in_index) override;
@ -415,6 +417,11 @@ std::string CDImagePPF::GetSubImageMetadata(u32 index, const std::string_view& t
return ret;
}
CDImage::PrecacheResult CDImagePPF::Precache(ProgressCallback* progress /*= ProgressCallback::NullProgressCallback*/)
{
return m_parent_image->Precache(progress);
}
bool CDImagePPF::ReadSectorFromIndex(void* buffer, const Index& index, LBA lba_in_index)
{
DebugAssert(index.file_index == 0);