mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2025-01-18 06:25:37 +00:00
CDImagePPF: Precache underlying image when requested
This commit is contained in:
parent
65991899eb
commit
8d7fdae683
|
@ -29,6 +29,8 @@ public:
|
||||||
std::string GetMetadata(const std::string_view& type) const override;
|
std::string GetMetadata(const std::string_view& type) const override;
|
||||||
std::string GetSubImageMetadata(u32 index, 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:
|
protected:
|
||||||
bool ReadSectorFromIndex(void* buffer, const Index& index, LBA lba_in_index) override;
|
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;
|
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)
|
bool CDImagePPF::ReadSectorFromIndex(void* buffer, const Index& index, LBA lba_in_index)
|
||||||
{
|
{
|
||||||
DebugAssert(index.file_index == 0);
|
DebugAssert(index.file_index == 0);
|
||||||
|
|
Loading…
Reference in a new issue