diff options
Diffstat (limited to 'binaryninjaapi.cpp')
| -rw-r--r-- | binaryninjaapi.cpp | 29 |
1 files changed, 11 insertions, 18 deletions
diff --git a/binaryninjaapi.cpp b/binaryninjaapi.cpp index 9a2ded1e..58a4c0cd 100644 --- a/binaryninjaapi.cpp +++ b/binaryninjaapi.cpp @@ -49,30 +49,23 @@ bool BinaryNinja::InitPlugins(bool allowUserPlugins) } -void BinaryNinja::InitCorePlugins() -{ - BNInitCorePlugins(); -} - - -void BinaryNinja::InitUserPlugins() -{ - BNInitUserPlugins(); -} - - -void BinaryNinja::InitRepoPlugins() +string BinaryNinja::GetBundledPluginDirectory() { - BNInitRepoPlugins(); + char* path = BNGetBundledPluginDirectory(); + if (!path) + return string(); + string result = path; + BNFreeString(path); + return result; } -string BinaryNinja::GetBundledPluginDirectory() +std::string BinaryNinja::GetBundledScriptPluginDirectory() { - char* path = BNGetBundledPluginDirectory(); + char* path = BNGetBundledScriptPluginDirectory(); if (!path) return string(); - string result = path; + std::string result = path; BNFreeString(path); return result; } @@ -298,7 +291,7 @@ uint32_t BinaryNinja::GetBuildId() } -void BinaryNinja::SetCurrentPluginLoadOrder(BNPluginLoadOrder order) +void BinaryNinja::SetCurrentPluginLoadOrder(BNPluginLoadPhase order) { BNSetCurrentPluginLoadOrder(order); } |
