mirror of
https://github.com/rizinorg/cutter.git
synced 2024-12-18 19:06:10 +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();
|
||||
|
||||
for (auto *plugin : Plugins()->getPlugins()) {
|
||||
plugin->registerDecompilers();
|
||||
}
|
||||
|
||||
mainWindow = new MainWindow();
|
||||
installEventFilter(mainWindow);
|
||||
|
||||
|
@ -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
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user