fltkui: Add support for UI loading of XML Romsets

This commit is contained in:
Rupert Carmichael 2024-11-21 23:35:03 -05:00
parent f0d6b6352b
commit 7451b30caf
2 changed files with 2 additions and 2 deletions

View file

@ -224,7 +224,7 @@ void FltkUi::rom_open(Fl_Widget *w, void *data) {
Fl_Native_File_Chooser fc;
fc.title("Select a ROM");
fc.type(Fl_Native_File_Chooser::BROWSE_FILE);
fc.filter("NES Games\t*.{nes,unf,fds,bin,zip,7z,gz,bz2,xz,zst}");
fc.filter("NES Games\t*.{nes,unf,fds,bin,zip,7z,gz,bz2,xz,xml,zst}");
// Show file chooser
switch (fc.show()) {

View file

@ -138,7 +138,7 @@ bool fltkui_archive_select(const char *filename, std::string& arcname) {
romfile = reqfile;
std::set<std::string> nes_exts = { ".nes", ".fds", ".unf", ".unif", ".bin" };
std::set<std::string> nes_exts = { ".nes", ".fds", ".unf", ".unif", ".bin", ".xml" };
// Fill the treestore with the filenames
while (archive_read_next_header(a, &entry) == ARCHIVE_OK) {