MCPcopy Create free account
hub / github.com/ModOrganizer2/modorganizer / managedGame

Method managedGame

src/plugincontainer.cpp:630–636  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

628}
629
630IPluginGame* PluginContainer::managedGame() const
631{
632 // TODO: This const_cast is safe but ugly. Most methods require a IPlugin*, so
633 // returning a const-version if painful. This should be fixed by making methods accept
634 // a const IPlugin* instead, but there are a few tricks with qobject_cast and const.
635 return m_Organizer ? const_cast<IPluginGame*>(m_Organizer->managedGame()) : nullptr;
636}
637
638bool PluginContainer::isEnabled(IPlugin* plugin) const
639{

Callers 1

isEnabledMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected