diff options
| author | 0cyn <kat@vector35.com> | 2026-04-14 15:45:28 -0400 |
|---|---|---|
| committer | 0cyn <kat@vector35.com> | 2026-04-14 15:47:03 -0400 |
| commit | 9fddd2a54eaa640888c656cdfb490690ec6f519b (patch) | |
| tree | d2379dd29e8c17dd16dda72980273a30763c8b8a /binaryninjaapi.cpp | |
| parent | 544b7ee320dd8dd69f7b368a36ee72e3faf7e640 (diff) | |
Plugin Manifest V2 Support
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); } |
