CDImage: Support loading subchannel from LSD files

This commit is contained in:
Stenzek
2023-11-15 19:05:21 +10:00
parent 7aa4180e17
commit bc485ee55b
9 changed files with 71 additions and 23 deletions

View File

@ -16,8 +16,7 @@ public:
u32 GetReplacementSectorCount() const { return static_cast<u32>(m_replacement_subq.size()); }
bool LoadSBI(const char* path);
bool LoadSBIFromImagePath(const char* image_path);
bool LoadFromImagePath(std::string_view image_path);
/// Adds a sector to the replacement map.
void AddReplacementSubChannelQ(u32 lba, const CDImage::SubChannelQ& subq);
@ -31,5 +30,8 @@ public:
private:
using ReplacementMap = std::unordered_map<u32, CDImage::SubChannelQ>;
bool LoadSBI(const std::string& path);
bool LoadLSD(const std::string& path);
ReplacementMap m_replacement_subq;
};