mirror of https://github.com/mgba-emu/mgba.git
Qt: Restrict load types
This commit is contained in:
parent
087810a125
commit
c8be60f88b
|
@ -177,7 +177,7 @@ void Window::saveConfig() {
|
|||
}
|
||||
|
||||
void Window::selectROM() {
|
||||
QString filename = QFileDialog::getOpenFileName(this, tr("Select ROM"), m_config->getQtOption("lastDirectory").toString());
|
||||
QString filename = QFileDialog::getOpenFileName(this, tr("Select ROM"), m_config->getQtOption("lastDirectory").toString(), tr("Game Boy Advance ROMs (*.gba *.zip *.rom *.bin)"));
|
||||
if (!filename.isEmpty()) {
|
||||
m_config->setQtOption("lastDirectory", QFileInfo(filename).dir().path());
|
||||
m_controller->loadGame(filename);
|
||||
|
|
Loading…
Reference in New Issue