mirror of
https://github.com/ModOrganizer2/modorganizer-plugin_python.git
synced 2026-07-27 14:03:33 -07:00
Update for startApplication
This commit is contained in:
@@ -982,7 +982,7 @@ BOOST_PYTHON_MODULE(mobase)
|
||||
.def("pluginList", bpy::pure_virtual(&IOrganizer::pluginList), bpy::return_value_policy<bpy::reference_existing_object>())
|
||||
.def("modList", bpy::pure_virtual(&IOrganizer::modList), bpy::return_value_policy<bpy::reference_existing_object>())
|
||||
.def("profile", bpy::pure_virtual(&IOrganizer::profile), bpy::return_value_policy<bpy::reference_existing_object>())
|
||||
.def("startApplication", bpy::pure_virtual(&IOrganizer::startApplication), ((bpy::arg("args")=QStringList()), (bpy::arg("cwd")=""), (bpy::arg("profile")="")), bpy::return_value_policy<bpy::return_by_value>())
|
||||
.def("startApplication", bpy::pure_virtual(&IOrganizer::startApplication), ((bpy::arg("args")=QStringList()), (bpy::arg("cwd")=""), (bpy::arg("profile")=""), (bpy::arg("forcedCustomOverwrite")=""), (bpy::arg("ignoreCustomOverwrite")=false)), bpy::return_value_policy<bpy::return_by_value>())
|
||||
//.def("waitForApplication", bpy::pure_virtual(&IOrganizer::waitForApplication), (bpy::arg("exitCode")=nullptr), bpy::return_value_policy<bpy::return_by_value>())
|
||||
// Use wrapped version
|
||||
.def("waitForApplication", waitForApplication)
|
||||
|
||||
@@ -356,9 +356,11 @@ struct IOrganizerWrapper : MOBase::IOrganizer,
|
||||
virtual HANDLE startApplication(const QString &executable,
|
||||
const QStringList &args = QStringList(),
|
||||
const QString &cwd = "",
|
||||
const QString &profile = "") override
|
||||
const QString &profile = "",
|
||||
const QString &forcedCustomOverwrite = "",
|
||||
bool ignoreCustomOverwrite = false) override
|
||||
{
|
||||
return reinterpret_cast<HANDLE>(this->get_override("startApplication")(executable, args, cwd, profile).as<size_t>());
|
||||
return reinterpret_cast<HANDLE>(this->get_override("startApplication")(executable, args, cwd, profile, forcedCustomOverwrite, ignoreCustomOverwrite).as<size_t>());
|
||||
}
|
||||
virtual bool waitForApplication(HANDLE handle,
|
||||
LPDWORD exitCode = nullptr) const override
|
||||
|
||||
Reference in New Issue
Block a user