mirror of
https://github.com/ModOrganizer2/modorganizer-plugin_python.git
synced 2026-07-27 14:03:33 -07:00
Fix shared_ptr in createFile().
This commit is contained in:
@@ -664,7 +664,9 @@ BOOST_PYTHON_MODULE(mobase)
|
||||
.def("getSupportedExtensions", &IInstallationManager::getSupportedExtensions)
|
||||
.def("extractFile", &IInstallationManager::extractFile, (bpy::arg("entry"), bpy::arg("silent") = false))
|
||||
.def("extractFiles", &IInstallationManager::extractFiles, (bpy::arg("entries"), bpy::arg("silent") = false))
|
||||
.def("createFile", &IInstallationManager::createFile, bpy::arg("entry"))
|
||||
.def("createFile", +[](IInstallationManager* m, std::shared_ptr<const MOBase::FileTreeEntry> entry) {
|
||||
return m->createFile(utils::clean_shared_ptr(entry));
|
||||
}, bpy::arg("entry"))
|
||||
|
||||
// accept both QString and GuessedValue<QString> since the conversion is not automatic in Python, and
|
||||
// return a tuple to get back the mod name and the mod ID
|
||||
|
||||
Reference in New Issue
Block a user