mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-03-27 23:37:05 -05:00
fix: Subcommands not working at all on Linux
This commit is contained in:
@@ -155,7 +155,7 @@ namespace hex {
|
||||
std::span<SubCommand> Plugin::getSubCommands() const {
|
||||
if (this->m_getSubCommandsFunction != nullptr) {
|
||||
auto result = this->m_getSubCommandsFunction();
|
||||
return { result->subCommands, result->size };
|
||||
return *reinterpret_cast<std::vector<SubCommand>*>(result);
|
||||
} else
|
||||
return { };
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user