aboutsummaryrefslogtreecommitdiff
path: root/libs/plugin_python/src/mobase/wrappers
diff options
context:
space:
mode:
Diffstat (limited to 'libs/plugin_python/src/mobase/wrappers')
-rw-r--r--libs/plugin_python/src/mobase/wrappers/basic_classes.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/libs/plugin_python/src/mobase/wrappers/basic_classes.cpp b/libs/plugin_python/src/mobase/wrappers/basic_classes.cpp
index f782099..7f06b77 100644
--- a/libs/plugin_python/src/mobase/wrappers/basic_classes.cpp
+++ b/libs/plugin_python/src/mobase/wrappers/basic_classes.cpp
@@ -114,6 +114,14 @@ namespace mo2::python {
[](Version const& version) {
return version.string(Version::FormatCondensed);
})
+ // Compatibility shim: older plugins call .canonicalString() on
+ // whatever IOrganizer.appVersion() returned, which used to be a
+ // VersionInfo. It now returns Version, so we mirror the old name
+ // here. LazyModlistExport and friends use this.
+ .def("canonicalString",
+ [](Version const& version) {
+ return version.string(Version::FormatCondensed);
+ })
.def(py::self < py::self)
.def(py::self > py::self)
.def(py::self <= py::self)