From f06a6d4e551a3ff5a2ab45f5eea5bd86842e05ef Mon Sep 17 00:00:00 2001 From: Tannin Date: Fri, 11 Oct 2013 23:03:49 +0200 Subject: [PATCH] - added new plugin to test if fnis needs to be run - some functionality to the plugin interface to enable them to search for files&directories in the virtual FS (rudimentary atm) - functionality for plugins to react to application being started from MO - broken ESPs are no longer reported as popup windows but only in the log file - bugfix: plugins couldn't store persistent data if they had no user-editable settings --- src/runner/uibasewrappers.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/runner/uibasewrappers.h b/src/runner/uibasewrappers.h index 275931d..41528e0 100644 --- a/src/runner/uibasewrappers.h +++ b/src/runner/uibasewrappers.h @@ -140,6 +140,9 @@ struct IOrganizerWrapper: MOBase::IOrganizer, boost::python::wrapperget_override("installMod")(fileName); } virtual MOBase::IDownloadManager *downloadManager() { return this->get_override("downloadManager")(); } virtual QString resolvePath(const QString &fileName) const { return this->get_override("resolvePath")(fileName); } + virtual QStringList listDirectories(const QString &directoryName) const { return this->get_override("listDirectories")(directoryName); } + virtual QStringList findFiles(const QString &path, const std::function &filter) const { return this->get_override("findFiles")(path, filter); } + virtual void onAboutToRun(const boost::function &func) { this->get_override("onAboutToRun")(func); } }; struct IDownloadManagerWrapper: MOBase::IDownloadManager, boost::python::wrapper