From 0a1789f842ae7dfa7412424afea5e7249ccfa4f9 Mon Sep 17 00:00:00 2001 From: Owen Green Date: Thu, 17 Dec 2020 09:49:21 +0000 Subject: [PATCH] Restore version command --- include/FluidSCWrapper.hpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/include/FluidSCWrapper.hpp b/include/FluidSCWrapper.hpp index 79f7d24..c5bbae0 100644 --- a/include/FluidSCWrapper.hpp +++ b/include/FluidSCWrapper.hpp @@ -66,6 +66,14 @@ public: getInterfaceTable(ft); impl::FluidSCWrapperBase::setup(ft, name); ft->fDefineUnitCmd(name, "version", doVersion); + + std::string commandName("/"); + commandName += getName(); + commandName += "/version"; + ft->fDefinePlugInCmd(commandName.c_str(), + [](World*, void*, sc_msg_iter*, void*){ doVersion(nullptr,nullptr); }, + nullptr); + } static auto& setParams(Unit* x, ParamSetType& p,