From a55df1d1114cd5b3dff693c474437a53b169429f Mon Sep 17 00:00:00 2001 From: WerWolv Date: Fri, 3 Jan 2025 00:15:52 +0100 Subject: [PATCH] fix: Exception being thrown when custom disassembler folders didn't exist --- .../source/content/disassemblers/custom_architectures.cpp | 3 +++ 1 file changed, 3 insertions(+) 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() });