change identification of sla archives with svg images

This commit is contained in:
tamasmeszaros 2023-03-28 10:27:21 +02:00
parent 47c318fa05
commit c6ea4d19c9
2 changed files with 4 additions and 4 deletions

View File

@ -37,8 +37,8 @@ static const std::map<std::string, ArchiveEntry> REGISTERED_ARCHIVES {
[] (const std::string &fname, SLAImportQuality quality, const ProgrFn &progr) { return std::make_unique<SL1Reader>(fname, quality, progr); } } [] (const std::string &fname, SLAImportQuality quality, const ProgrFn &progr) { return std::make_unique<SL1Reader>(fname, quality, progr); } }
}, },
{ {
"SL2", "SL1SVG",
{ L("SL2 archive files"), {"sl2", "sl1_svg"/*, "zip"*/}, // also a zip but unnecessary hassle to implement single extension for multiple archives { L("SL1SVG archive files"), {"sl1_svg"/*, "zip"*/}, // also a zip but unnecessary hassle to implement single extension for multiple archives
[] (const std::string &fname, SLAImportQuality quality, const ProgrFn &progr) { return std::make_unique<SL1_SVGReader>(fname, quality, progr); }} [] (const std::string &fname, SLAImportQuality quality, const ProgrFn &progr) { return std::make_unique<SL1_SVGReader>(fname, quality, progr); }}
}, },
// TODO: pwmx and future others. // TODO: pwmx and future others.

View File

@ -26,8 +26,8 @@ static const std::map<std::string, ArchiveEntry> REGISTERED_ARCHIVES {
{ "sl1", [] (const auto &cfg) { return std::make_unique<SL1Archive>(cfg); } } { "sl1", [] (const auto &cfg) { return std::make_unique<SL1Archive>(cfg); } }
}, },
{ {
"SL2", "SL1SVG",
{ "sl2", [] (const auto &cfg) { return std::make_unique<SL1_SVGArchive>(cfg); } } { "sl1_svg", [] (const auto &cfg) { return std::make_unique<SL1_SVGArchive>(cfg); } }
}, },
{ {
"pwmx", "pwmx",