Add Plugin Interface for Decompilers

This commit is contained in:
Florian Märkl 2019-07-15 18:07:24 +02:00 committed by xarkes
parent fc9bbe1432
commit 26dce4c7b9
2 changed files with 11 additions and 0 deletions

View File

@ -138,6 +138,10 @@ CutterApplication::CutterApplication(int &argc, char **argv) : QApplication(argc
Plugins()->loadPlugins();
for (auto *plugin : Plugins()->getPlugins()) {
plugin->registerDecompilers();
}
mainWindow = new MainWindow();
installEventFilter(mainWindow);

View File

@ -27,6 +27,13 @@ public:
*/
virtual void setupInterface(MainWindow *main) = 0;
/**
* @brief Register any decompiler implemented by the Plugin
*
* called during initialization of Cutter, after setupPlugin()
*/
virtual void registerDecompilers() {}
/**
* @brief Shutdown the Plugin
*