mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-03-30 05:05:19 -05:00
fix: Don't load constants files that start with a _
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user