CDSubChannelReplacement: Clear map on reload
Fixes one PBP disc's SBI from leaking into others.
This commit is contained in:
@ -61,6 +61,8 @@ bool CDSubChannelReplacement::LoadSBI(const std::string& path)
|
||||
return true;
|
||||
}
|
||||
|
||||
m_replacement_subq.clear();
|
||||
|
||||
SBIFileEntry entry;
|
||||
while (std::fread(&entry, sizeof(entry), 1, fp.get()) == 1)
|
||||
{
|
||||
@ -101,6 +103,8 @@ bool CDSubChannelReplacement::LoadLSD(const std::string& path)
|
||||
if (!fp)
|
||||
return false;
|
||||
|
||||
m_replacement_subq.clear();
|
||||
|
||||
LSDFileEntry entry;
|
||||
while (std::fread(&entry, sizeof(entry), 1, fp.get()) == 1)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user