mirror of
https://github.com/rizinorg/cutter.git
synced 2024-12-20 20:06:12 +00:00
Add Plugin Interface for Decompilers
This commit is contained in:
parent
fc9bbe1432
commit
26dce4c7b9
@ -138,6 +138,10 @@ CutterApplication::CutterApplication(int &argc, char **argv) : QApplication(argc
|
|||||||
|
|
||||||
Plugins()->loadPlugins();
|
Plugins()->loadPlugins();
|
||||||
|
|
||||||
|
for (auto *plugin : Plugins()->getPlugins()) {
|
||||||
|
plugin->registerDecompilers();
|
||||||
|
}
|
||||||
|
|
||||||
mainWindow = new MainWindow();
|
mainWindow = new MainWindow();
|
||||||
installEventFilter(mainWindow);
|
installEventFilter(mainWindow);
|
||||||
|
|
||||||
|
@ -27,6 +27,13 @@ public:
|
|||||||
*/
|
*/
|
||||||
virtual void setupInterface(MainWindow *main) = 0;
|
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
|
* @brief Shutdown the Plugin
|
||||||
*
|
*
|
||||||
|
Loading…
Reference in New Issue
Block a user