summaryrefslogtreecommitdiff
path: root/examples/llil_parser/src
diff options
context:
space:
mode:
Diffstat (limited to 'examples/llil_parser/src')
-rw-r--r--examples/llil_parser/src/llil_parser.cpp27
1 files changed, 2 insertions, 25 deletions
diff --git a/examples/llil_parser/src/llil_parser.cpp b/examples/llil_parser/src/llil_parser.cpp
index d700e7ce..fcff0612 100644
--- a/examples/llil_parser/src/llil_parser.cpp
+++ b/examples/llil_parser/src/llil_parser.cpp
@@ -8,27 +8,6 @@ using namespace BinaryNinja;
using namespace std;
-#ifndef _WIN32
- #include <libgen.h>
- #include <dlfcn.h>
-static string GetPluginsDirectory()
-{
- Dl_info info;
- if (!dladdr((void*)BNGetBundledPluginDirectory, &info))
- return NULL;
-
- stringstream ss;
- ss << dirname((char*)info.dli_fname) << "/plugins/";
- return ss.str();
-}
-#else
-static string GetPluginsDirectory()
-{
- return "C:\\Program Files\\Vector35\\BinaryNinja\\plugins\\";
-}
-#endif
-
-
static void PrintIndent(size_t indent)
{
for (size_t i = 0; i < indent; i++)
@@ -309,10 +288,8 @@ int main(int argc, char* argv[])
}
// In order to initiate the bundled plugins properly, the location
- // of where bundled plugins directory is must be set. Since
- // libbinaryninjacore is in the path get the path to it and use it to
- // determine the plugins directory
- SetBundledPluginDirectory(GetPluginsDirectory());
+ // of where bundled plugins directory is must be set.
+ SetBundledPluginDirectory(GetBundledPluginDirectory());
InitPlugins();
Ref<BinaryData> bd = new BinaryData(new FileMetadata(), argv[1]);