fix: Exception being thrown when custom disassembler folders didn't exist
This commit is contained in:
parent
2cf32ba38d
commit
a55df1d111
@ -57,6 +57,9 @@ namespace hex::plugin::disasm {
|
|||||||
|
|
||||||
void registerCustomArchitectures() {
|
void registerCustomArchitectures() {
|
||||||
for (const auto &folder : hex::paths::Disassemblers.all()) {
|
for (const auto &folder : hex::paths::Disassemblers.all()) {
|
||||||
|
if (!wolv::io::fs::exists(folder))
|
||||||
|
continue;
|
||||||
|
|
||||||
for (const auto &entry : std::fs::directory_iterator(folder)) {
|
for (const auto &entry : std::fs::directory_iterator(folder)) {
|
||||||
try {
|
try {
|
||||||
auto spec = ::disasm::spec::Loader::load(entry.path(), { entry.path().parent_path() });
|
auto spec = ::disasm::spec::Loader::load(entry.path(), { entry.path().parent_path() });
|
||||||
|
Loading…
x
Reference in New Issue
Block a user