mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-03-30 13:05:25 -05:00
feat: Added initial support for custom disassemblers
This commit is contained in:
1
lib/external/disassembler
vendored
Submodule
1
lib/external/disassembler
vendored
Submodule
Submodule lib/external/disassembler added at 2209885ee7
@@ -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...);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -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
|
||||
};
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user