Qt: Add Remove Disc option to change disc menu

This commit is contained in:
Connor McLaughlin
2020-05-20 02:32:19 +10:00
parent fa027d9c2a
commit c8a00c58eb
4 changed files with 17 additions and 1 deletions

View File

@ -615,7 +615,10 @@ void QtHostInterface::changeDisc(const QString& new_disc_filename)
if (!m_system)
return;
m_system->InsertMedia(new_disc_filename.toStdString().c_str());
if (!new_disc_filename.isEmpty())
m_system->InsertMedia(new_disc_filename.toStdString().c_str());
else
m_system->RemoveMedia();
}
static QString FormatTimestampForSaveStateMenu(u64 timestamp)