mirror of https://github.com/mgba-emu/mgba.git
Qt: Fix open ROM dialog filtering for archive formats
This commit is contained in:
parent
2161769660
commit
3ace420e3f
1
CHANGES
1
CHANGES
|
@ -26,6 +26,7 @@ Bugfixes:
|
||||||
- GBA Video: Blended sprites should never have other effects applied
|
- GBA Video: Blended sprites should never have other effects applied
|
||||||
- GBA: Fix crash if a 512kb flash save is loaded when a game has a 1Mb flash override
|
- GBA: Fix crash if a 512kb flash save is loaded when a game has a 1Mb flash override
|
||||||
- Qt: Better cleanup when a game crashes
|
- Qt: Better cleanup when a game crashes
|
||||||
|
- Qt: Fix open ROM dialog filtering for archive formats
|
||||||
Misc:
|
Misc:
|
||||||
- Qt: Handle saving input settings better
|
- Qt: Handle saving input settings better
|
||||||
- Debugger: Free watchpoints in addition to breakpoints
|
- Debugger: Free watchpoints in addition to breakpoints
|
||||||
|
|
|
@ -219,7 +219,18 @@ void Window::selectROM() {
|
||||||
if (doPause) {
|
if (doPause) {
|
||||||
m_controller->setPaused(true);
|
m_controller->setPaused(true);
|
||||||
}
|
}
|
||||||
QString filename = QFileDialog::getOpenFileName(this, tr("Select ROM"), m_config->getQtOption("lastDirectory").toString(), tr("Game Boy Advance ROMs (*.gba *.zip *.rom *.bin)"));
|
QStringList formats{
|
||||||
|
"*.gba",
|
||||||
|
#ifdef USE_LIBZIP
|
||||||
|
"*.zip",
|
||||||
|
#endif
|
||||||
|
#ifdef USE_LZMA
|
||||||
|
"*.7z",
|
||||||
|
#endif
|
||||||
|
"*.rom",
|
||||||
|
"*.bin"};
|
||||||
|
QString filter = tr("Game Boy Advance ROMs (%1)").arg(formats.join(QChar(' ')));
|
||||||
|
QString filename = QFileDialog::getOpenFileName(this, tr("Select ROM"), m_config->getQtOption("lastDirectory").toString(), filter);
|
||||||
if (doPause) {
|
if (doPause) {
|
||||||
m_controller->setPaused(false);
|
m_controller->setPaused(false);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue