1
0
mirror of synced 2025-01-10 21:41:53 +01:00

fix: Exception being thrown when custom disassembler folders didn't exist

This commit is contained in:
WerWolv 2025-01-03 00:15:52 +01:00
parent 2cf32ba38d
commit a55df1d111

View File

@ -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() });