fix: Don't load constants files that start with a _
This commit is contained in:
parent
1b028dfc0a
commit
a7ecefb5a0
@ -30,6 +30,9 @@ namespace hex::plugin::builtin {
|
||||
for (auto &file : std::fs::directory_iterator(path, error)) {
|
||||
if (!file.is_regular_file()) continue;
|
||||
|
||||
if (file.path().extension() != ".json") continue;
|
||||
if (file.path().filename().u8string().starts_with('_')) continue;
|
||||
|
||||
try {
|
||||
auto fileData = wolv::io::File(file.path(), wolv::io::File::Mode::Read).readString();
|
||||
auto content = nlohmann::json::parse(fileData);
|
||||
|
Loading…
Reference in New Issue
Block a user