Skip to content

Commit

Permalink
Load radare2 plugins from the iaito plugins directory too
Browse files Browse the repository at this point in the history
  • Loading branch information
radare committed Oct 16, 2024
1 parent 34c3419 commit efbe662
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/core/Iaito.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
#include "common/R2Task.h"
#include "common/TempConfig.h"
#include "core/Iaito.h"
#include "plugins/PluginManager.h"

#include <r_asm.h>
#include <r_cmd.h>
Expand Down Expand Up @@ -235,7 +236,11 @@ void IaitoCore::initialize(bool loadPlugins)
#endif
#endif

if (!loadPlugins) {
if (loadPlugins) {
QString pluginsDir = QDir(Plugins()->getUserPluginsDirectory()).absolutePath();
const char *iaitoPluginsDirectory = pluginsDir.toStdString().c_str();
r_lib_opendir (core->lib, iaitoPluginsDirectory);
} else {
setConfig("cfg.plugins", false);
}
if (getConfigi("cfg.plugins")) {
Expand Down

0 comments on commit efbe662

Please sign in to comment.