fix: WASM disassembler not being available in Capstone < 5 (#1086)

This fixes build on Debian with Capstone from packages.
This commit is contained in:
KOLANICH
2023-05-20 11:37:45 +00:00
committed by GitHub
parent 96ee544538
commit 608c9e2e7a
2 changed files with 4 additions and 4 deletions

View File

@@ -299,13 +299,13 @@ namespace hex::plugin::builtin {
this->m_mode = cs_mode(mode);
}
break;
case Architecture::WASM:
#endif
case Architecture::EVM:
case Architecture::TMS320C64X:
case Architecture::ARM64:
case Architecture::SYSZ:
case Architecture::XCORE:
case Architecture::WASM:
case Architecture::MAX:
this->m_mode = cs_mode(0);
break;
@@ -373,4 +373,4 @@ namespace hex::plugin::builtin {
ImGui::End();
}
}
}