1
0
mirror of synced 2024-11-12 02:00:52 +01:00

impr: Look for magic files recursively

This commit is contained in:
WerWolv 2023-03-17 21:18:28 +01:00
parent 4c1a24058c
commit 1a1bf98905
2 changed files with 3 additions and 3 deletions

View File

@ -28,7 +28,7 @@ namespace hex::magic {
std::error_code error;
for (const auto &dir : fs::getDefaultPaths(fs::ImHexPath::Magic)) {
for (const auto &entry : std::fs::directory_iterator(dir, error)) {
for (const auto &entry : std::fs::recursive_directory_iterator(dir, error)) {
if (entry.is_regular_file() && ((sourceFiles && entry.path().extension().empty()) || (!sourceFiles && entry.path().extension() == ".mgc"))) {
magicFiles += wolv::util::toUTF8String(wolv::io::fs::toShortPath(entry.path())) + MAGIC_PATH_SEPARATOR;
}

View File

@ -319,7 +319,7 @@ namespace hex::plugin::builtin {
ImGui::BeginGroup();
{
ImGui::TextUnformatted("hex.builtin.view.information.digram"_lang);
this->m_digram.draw(ImVec2(300, 300));
this->m_digram.draw(scaled(ImVec2(300, 300)));
}
ImGui::EndGroup();
@ -328,7 +328,7 @@ namespace hex::plugin::builtin {
ImGui::BeginGroup();
{
ImGui::TextUnformatted("hex.builtin.view.information.layered_distribution"_lang);
this->m_layeredDistribution.draw(ImVec2(300, 300));
this->m_layeredDistribution.draw(scaled(ImVec2(300, 300)));
}
ImGui::EndGroup();
}