mirror of
https://github.com/ModOrganizer2/modorganizer-plugin_python.git
synced 2026-07-27 14:03:33 -07:00
- separated python proxy into two dlls. One is a wrapper without external
dependencies that fulfills the plugin interface. The other contains the actual python functionality. This way the outer dll can always be loaded and report issues. - The build process embeds the second dll into the first, this way only one dll has to be shipped
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
#ifndef PYTHONRUNNER_H
|
||||
#define PYTHONRUNNER_H
|
||||
|
||||
#include <QString>
|
||||
#include <QObject>
|
||||
#include <map>
|
||||
#include <dllimport.h>
|
||||
#include <imoinfo.h>
|
||||
|
||||
|
||||
class IPythonRunner {
|
||||
public:
|
||||
virtual QObject *instantiate(const QString &pluginName) = 0;
|
||||
virtual bool isPythonInstalled() const = 0;
|
||||
virtual bool isPythonVersionSupported() const = 0;
|
||||
};
|
||||
|
||||
extern "C" QDLLEXPORT IPythonRunner *CreatePythonRunner(const MOBase::IOrganizer *moInfo, const QString &pythonDir);
|
||||
|
||||
|
||||
#endif // PYTHONRUNNER_H
|
||||
Reference in New Issue
Block a user