mirror of
https://github.com/0ldsk00l/nestopia.git
synced 2025-04-02 10:31:51 -04:00
fltkui: Add support for UI loading of XML Romsets
This commit is contained in:
parent
f0d6b6352b
commit
7451b30caf
2 changed files with 2 additions and 2 deletions
|
@ -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()) {
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue