From 551738c693b52b8c383eab629fbc9d81d04d4c4b Mon Sep 17 00:00:00 2001 From: Mason Reed Date: Wed, 22 Oct 2025 02:09:10 -0400 Subject: Add more plugins to free Adds WARP, DWARF Import and Objective-C plugins to free --- plugins/warp/src/plugin.rs | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) (limited to 'plugins/warp/src') diff --git a/plugins/warp/src/plugin.rs b/plugins/warp/src/plugin.rs index 16462f00..4364508b 100644 --- a/plugins/warp/src/plugin.rs +++ b/plugins/warp/src/plugin.rs @@ -116,9 +116,7 @@ fn load_network_container() { background_task.finish(); } -#[no_mangle] -#[allow(non_snake_case)] -pub extern "C" fn CorePluginInit() -> bool { +fn plugin_init() -> bool { Logger::new("WARP").with_level(LevelFilter::Debug).init(); // Register our matcher and plugin settings globally. @@ -249,3 +247,19 @@ pub extern "C" fn CorePluginInit() -> bool { true } + +#[no_mangle] +#[allow(non_snake_case)] +#[cfg(feature = "demo")] +pub extern "C" fn WarpPluginInit() -> bool { + plugin_init(); + true +} + +#[no_mangle] +#[allow(non_snake_case)] +#[cfg(not(feature = "demo"))] +pub extern "C" fn CorePluginInit() -> bool { + plugin_init(); + true +} -- cgit v1.3.1