mirror of
https://github.com/ModOrganizer2/modorganizer-plugin_python.git
synced 2026-07-27 14:03:33 -07:00
Fix simple errors with IPluginGame proxy and add warning when the unimplemented part is encountered
This commit is contained in:
@@ -293,7 +293,7 @@ QString IPluginGameWrapper::getLauncherName() const
|
||||
bool IPluginGameWrapper::init(MOBase::IOrganizer * moInfo)
|
||||
{
|
||||
try {
|
||||
return this->get_override("init")(moInfo);
|
||||
return this->get_override("init")(boost::python::ptr(moInfo));
|
||||
} PYCATCH;
|
||||
}
|
||||
|
||||
@@ -341,6 +341,7 @@ QList<MOBase::PluginSetting> IPluginGameWrapper::settings() const
|
||||
|
||||
std::map<std::type_index, boost::any> IPluginGameWrapper::featureList() const
|
||||
{
|
||||
qCritical("Calling unproxied method IPluginGameWrapper::featureList()");
|
||||
try {
|
||||
return this->get_override("_featureList")();
|
||||
} PYCATCH;
|
||||
|
||||
@@ -984,6 +984,7 @@ BOOST_PYTHON_MODULE(mobase)
|
||||
|
||||
bpy::to_python_converter<ModRepositoryFileInfo, ModRepositoryFileInfo_to_python_dict>();
|
||||
|
||||
QList_from_python_obj<ExecutableInfo>();
|
||||
QList_from_python_obj<PluginSetting>();
|
||||
bpy::to_python_converter<QList<ModRepositoryFileInfo>,
|
||||
QList_to_python_list<ModRepositoryFileInfo> >();
|
||||
|
||||
Reference in New Issue
Block a user