Make valid_names not constexpr
Signed-off-by: crueter <crueter@eden-emu.dev>
This commit is contained in:
parent
1de431f915
commit
8527f6952f
|
|
@ -18,10 +18,10 @@ std::vector<std::filesystem::path> GetModFolder(const std::string& root) {
|
||||||
|
|
||||||
auto callback = [&paths](const std::filesystem::directory_entry& entry) -> bool {
|
auto callback = [&paths](const std::filesystem::directory_entry& entry) -> bool {
|
||||||
const auto name = entry.path().filename().string();
|
const auto name = entry.path().filename().string();
|
||||||
static constexpr const std::array<std::string, 5> valid_names = {"exefs",
|
static const std::array<std::string, 5> valid_names = {"exefs",
|
||||||
"romfs"
|
"romfs"
|
||||||
"romfs_ext",
|
"romfs_ext",
|
||||||
"cheats", "romfslite"};
|
"cheats", "romfslite"};
|
||||||
|
|
||||||
if (std::ranges::find(valid_names, name) != valid_names.end()) {
|
if (std::ranges::find(valid_names, name) != valid_names.end()) {
|
||||||
paths.emplace_back(entry.path().parent_path());
|
paths.emplace_back(entry.path().parent_path());
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue