System: Scaffolding for multi-system/multi-bios

This commit is contained in:
Connor McLaughlin
2019-11-16 15:27:57 +10:00
parent d6209937fb
commit 246c97ccb3
19 changed files with 576 additions and 268 deletions

View File

@ -147,20 +147,12 @@ bool CDROM::DoState(StateWrapper& sw)
return !sw.HasError();
}
bool CDROM::InsertMedia(const char* filename)
void CDROM::InsertMedia(std::unique_ptr<CDImage> media)
{
auto media = CDImage::Open(filename);
if (!media)
{
Log_ErrorPrintf("Failed to open media at '%s'", filename);
return false;
}
if (HasMedia())
RemoveMedia();
m_media = std::move(media);
return true;
}
void CDROM::RemoveMedia()