feat: Added initial support for custom disassemblers

This commit is contained in:
WerWolv
2024-12-26 20:04:39 +01:00
parent a76c6c653d
commit bf44a1cce6
12 changed files with 170 additions and 42 deletions

1
lib/external/disassembler vendored Submodule

View File

@@ -1461,8 +1461,8 @@ namespace hex {
template<std::derived_from<Architecture> T>
void add(auto && ...args) {
impl::addArchitectureCreator([args...] {
return std::make_unique<T>(std::forward<decltype(args)>(args)...);
impl::addArchitectureCreator([...args = std::move(args)] {
return std::make_unique<T>(args...);
});
}

View File

@@ -82,8 +82,9 @@ namespace hex::paths {
const static inline impl::DataPath Nodes("scripts/nodes");
const static inline impl::DataPath Layouts("layouts");
const static inline impl::DataPath Workspaces("workspaces");
const static inline impl::DataPath Disassemblers("disassemblers");
constexpr static inline std::array<const impl::DefaultPath*, 20> All = {
constexpr static inline std::array<const impl::DefaultPath*, 21> All = {
&Config,
&Recent,
@@ -106,6 +107,7 @@ namespace hex::paths {
&Nodes,
&Layouts,
&Workspaces,
&Disassemblers
};
}