diff --git a/plugins/disassembler/source/content/disassemblers/custom_architectures.cpp b/plugins/disassembler/source/content/disassemblers/custom_architectures.cpp index 39c7fc498..833e7a6e3 100644 --- a/plugins/disassembler/source/content/disassemblers/custom_architectures.cpp +++ b/plugins/disassembler/source/content/disassemblers/custom_architectures.cpp @@ -57,6 +57,9 @@ namespace hex::plugin::disasm { void registerCustomArchitectures() { for (const auto &folder : hex::paths::Disassemblers.all()) { + if (!wolv::io::fs::exists(folder)) + continue; + for (const auto &entry : std::fs::directory_iterator(folder)) { try { auto spec = ::disasm::spec::Loader::load(entry.path(), { entry.path().parent_path() });