From de809c6d57b6010b6f4e63cc320b93542a0fc01a Mon Sep 17 00:00:00 2001 From: AnyOldName3 Date: Wed, 18 Apr 2018 00:06:12 +0100 Subject: [PATCH] Fix simple errors with IPluginGame proxy and add warning when the unimplemented part is encountered --- src/runner/proxypluginwrappers.cpp | 3 ++- src/runner/pythonrunner.cpp | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/runner/proxypluginwrappers.cpp b/src/runner/proxypluginwrappers.cpp index a4594ed..63748dc 100644 --- a/src/runner/proxypluginwrappers.cpp +++ b/src/runner/proxypluginwrappers.cpp @@ -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 IPluginGameWrapper::settings() const std::map IPluginGameWrapper::featureList() const { + qCritical("Calling unproxied method IPluginGameWrapper::featureList()"); try { return this->get_override("_featureList")(); } PYCATCH; diff --git a/src/runner/pythonrunner.cpp b/src/runner/pythonrunner.cpp index c4ec847..777ac77 100644 --- a/src/runner/pythonrunner.cpp +++ b/src/runner/pythonrunner.cpp @@ -984,6 +984,7 @@ BOOST_PYTHON_MODULE(mobase) bpy::to_python_converter(); + QList_from_python_obj(); QList_from_python_obj(); bpy::to_python_converter, QList_to_python_list >();