Make valid_names not constexpr

Signed-off-by: crueter <crueter@eden-emu.dev>
This commit is contained in:
crueter 2026-02-06 20:09:38 -05:00
parent 1de431f915
commit 8527f6952f
No known key found for this signature in database
GPG Key ID: 425ACD2D4830EBC6
1 changed files with 4 additions and 4 deletions

View File

@ -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());