Skip to content

Commit

Permalink
fix: Exception being thrown when custom disassembler folders didn't e…
Browse files Browse the repository at this point in the history
…xist
  • Loading branch information
WerWolv committed Jan 2, 2025
1 parent 2cf32ba commit a55df1d
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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() });
Expand Down

0 comments on commit a55df1d

Please sign in to comment.