From 7451b30caf3939e88fbd60106173f80a9b8fc8e3 Mon Sep 17 00:00:00 2001 From: Rupert Carmichael <5050061-carmiker@users.noreply.gitlab.com> Date: Thu, 21 Nov 2024 23:35:03 -0500 Subject: [PATCH] fltkui: Add support for UI loading of XML Romsets --- source/fltkui/fltkui.cpp | 2 +- source/fltkui/fltkui_archive.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/source/fltkui/fltkui.cpp b/source/fltkui/fltkui.cpp index 4550368..8706cde 100644 --- a/source/fltkui/fltkui.cpp +++ b/source/fltkui/fltkui.cpp @@ -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()) { diff --git a/source/fltkui/fltkui_archive.cpp b/source/fltkui/fltkui_archive.cpp index 3f140b7..4818b04 100644 --- a/source/fltkui/fltkui_archive.cpp +++ b/source/fltkui/fltkui_archive.cpp @@ -138,7 +138,7 @@ bool fltkui_archive_select(const char *filename, std::string& arcname) { romfile = reqfile; - std::set nes_exts = { ".nes", ".fds", ".unf", ".unif", ".bin" }; + std::set nes_exts = { ".nes", ".fds", ".unf", ".unif", ".bin", ".xml" }; // Fill the treestore with the filenames while (archive_read_next_header(a, &entry) == ARCHIVE_OK) {