Replace IPlugin::registered() by IPluginGame::detectGame().

This commit is contained in:
Mikaël Capelle
2020-11-06 18:56:00 +01:00
parent 7d0e97ed2b
commit 93dcf8d5b3
3 changed files with 7 additions and 22 deletions
+4 -10
View File
@@ -28,16 +28,6 @@ using namespace MOBase;
#define COMMON_I_PLUGIN_WRAPPER_DEFINITIONS(class_name) \
void class_name::registered() \
{ \
basicWrapperFunctionImplementationWithDefault<void>(this, &class_name::registered_Default, "registered"); \
} \
\
void class_name::registered_Default() \
{ \
IPlugin::registered(); \
} \
\
bool class_name::init(MOBase::IOrganizer *moInfo) \
{ \
return basicWrapperFunctionImplementation<bool>(this, "init", boost::python::ptr(moInfo)); \
@@ -138,6 +128,10 @@ MappingType IPluginFileMapperWrapper::mappings() const
/////////////////////////////////////
/// IPluginGame Wrapper
void IPluginGameWrapper::detectGame()
{
return basicWrapperFunctionImplementation<void>(this, "detectGame");
}
QString IPluginGameWrapper::gameName() const
{