diff --git a/plugins/builtin/source/content/providers/intel_hex_provider.cpp b/plugins/builtin/source/content/providers/intel_hex_provider.cpp index 7d15cb74e..398ae108a 100644 --- a/plugins/builtin/source/content/providers/intel_hex_provider.cpp +++ b/plugins/builtin/source/content/providers/intel_hex_provider.cpp @@ -222,9 +222,24 @@ namespace hex::plugin::builtin { } bool IntelHexProvider::handleFilePicker() { - auto picked = fs::openFileBrowser(fs::DialogMode::Open, { { "Intel Hex File", "*" } }, [this](const std::fs::path &path) { - this->m_sourceFilePath = path; - }); + auto picked = fs::openFileBrowser(fs::DialogMode::Open, { + { "Intel Hex File", "hex" }, + { "Intel Hex File", "h86" }, + { "Intel Hex File", "hxl" }, + { "Intel Hex File", "hxh" }, + { "Intel Hex File", "obl" }, + { "Intel Hex File", "obh" }, + { "Intel Hex File", "mcs" }, + { "Intel Hex File", "ihex" }, + { "Intel Hex File", "ihe" }, + { "Intel Hex File", "ihx" }, + { "Intel Hex File", "a43" }, + { "Intel Hex File", "a90" } + }, [this](const std::fs::path &path) { + this->m_sourceFilePath = path; + } + ); + if (!picked) return false; if (!fs::isRegularFile(this->m_sourceFilePath)) diff --git a/plugins/builtin/source/content/providers/motorola_srec_provider.cpp b/plugins/builtin/source/content/providers/motorola_srec_provider.cpp index 8bd6aece2..bfba4bb03 100644 --- a/plugins/builtin/source/content/providers/motorola_srec_provider.cpp +++ b/plugins/builtin/source/content/providers/motorola_srec_provider.cpp @@ -198,9 +198,25 @@ namespace hex::plugin::builtin { } bool MotorolaSRECProvider::handleFilePicker() { - auto picked = fs::openFileBrowser(fs::DialogMode::Open, { { "Motorola SREC File", "*" } }, [this](const std::fs::path &path) { - this->m_sourceFilePath = path; - }); + auto picked = fs::openFileBrowser(fs::DialogMode::Open, { + { "Motorola SREC File", "s19" }, + { "Motorola SREC File", "s28" }, + { "Motorola SREC File", "s37" }, + { "Motorola SREC File", "s" }, + { "Motorola SREC File", "s1" }, + { "Motorola SREC File", "s2" }, + { "Motorola SREC File", "s3" }, + { "Motorola SREC File", "sx" }, + { "Motorola SREC File", "srec" }, + { "Motorola SREC File", "exo" }, + { "Motorola SREC File", "mot" }, + { "Motorola SREC File", "mxt" } + }, + [this](const std::fs::path &path) { + this->m_sourceFilePath = path; + } + ); + if (!picked) return false; if (!fs::isRegularFile(this->m_sourceFilePath))