mirror of
https://github.com/libretro/Play-.git
synced 2025-02-25 22:15:27 +00:00
Add "Boot from cdrom0" menu item.
This commit is contained in:
parent
026b58dd9c
commit
1a3d3c8d81
@ -50,6 +50,7 @@
|
||||
<string>File</string>
|
||||
</property>
|
||||
<addaction name="actionBoot_DiscImage"/>
|
||||
<addaction name="actionBoot_cdrom0"/>
|
||||
<addaction name="actionBoot_ELF"/>
|
||||
<addaction name="separator"/>
|
||||
<addaction name="actionExit"/>
|
||||
@ -191,6 +192,11 @@
|
||||
<string>Capture Screen</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionBoot_cdrom0">
|
||||
<property name="text">
|
||||
<string>Boot cdrom0</string>
|
||||
</property>
|
||||
</action>
|
||||
</widget>
|
||||
<layoutdefault spacing="6" margin="11"/>
|
||||
<resources>
|
||||
|
@ -197,6 +197,20 @@ void MainWindow::on_actionBoot_DiscImage_triggered()
|
||||
}
|
||||
}
|
||||
|
||||
void MainWindow::on_actionBoot_cdrom0_triggered()
|
||||
{
|
||||
try
|
||||
{
|
||||
BootCDROM();
|
||||
}
|
||||
catch(const std::exception& e)
|
||||
{
|
||||
QMessageBox messageBox;
|
||||
messageBox.critical(nullptr, "Error", e.what());
|
||||
messageBox.show();
|
||||
}
|
||||
}
|
||||
|
||||
void MainWindow::on_actionBoot_ELF_triggered()
|
||||
{
|
||||
QFileDialog dialog(this);
|
||||
|
@ -99,6 +99,7 @@ public slots:
|
||||
|
||||
private slots:
|
||||
void on_actionBoot_DiscImage_triggered();
|
||||
void on_actionBoot_cdrom0_triggered();
|
||||
void on_actionBoot_ELF_triggered();
|
||||
void on_actionExit_triggered();
|
||||
void keyPressEvent(QKeyEvent*) Q_DECL_OVERRIDE;
|
||||
|
Loading…
x
Reference in New Issue
Block a user