From 3c3df26d25987d886c0a491ab17419e70a552423 Mon Sep 17 00:00:00 2001 From: Gauthier Segay Date: Wed, 22 Nov 2023 16:45:21 +0100 Subject: [PATCH 1/2] Update README.md `Reaper::load` should be `Reaper::init_global` AFAIU. --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 1dc0dcc..1abd3b8 100644 --- a/README.md +++ b/README.md @@ -36,7 +36,7 @@ use std::error::Error; #[reaper_extension_plugin] fn plugin_main(context: PluginContext) -> Result<(), Box> { - Reaper::load(context); + Reaper::init_global(context); let reaper = Reaper::get_mut(); let message = "Hello from small extension"; reaper.show_console_msg(message); @@ -72,7 +72,7 @@ fn my_action_func(_flag: i32) -> Result<(), Box> { #[reaper_extension_plugin] fn plugin_main(context: PluginContext) -> Result<(), Box> { - Reaper::load(context); + Reaper::init_global(context); let reaper = Reaper::get_mut(); let action = reaper.register_action( From 920cff100bc04f2894f67ff2ce057185c65fc28e Mon Sep 17 00:00:00 2001 From: Gauthier Segay Date: Wed, 22 Nov 2023 18:01:32 +0100 Subject: [PATCH 2/2] Update lib.rs doc strings same adjustment for the doc.rs --- rea-rs/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rea-rs/src/lib.rs b/rea-rs/src/lib.rs index 366dbe5..d889f6b 100644 --- a/rea-rs/src/lib.rs +++ b/rea-rs/src/lib.rs @@ -38,7 +38,7 @@ //! //! #[reaper_extension_plugin] //! fn plugin_main(context: PluginContext) -> Result<(), Box> { -//! Reaper::load(context); +//! Reaper::init_global(context); //! let reaper = Reaper::get_mut(); //! let message = "Hello from small extension"; //! reaper.show_console_msg(message); @@ -75,7 +75,7 @@ //! //! #[reaper_extension_plugin] //! fn plugin_main(context: PluginContext) -> Result<(), Box> { -//! Reaper::load(context); +//! Reaper::init_global(context); //! let reaper = Reaper::get_mut(); //! //! let action = reaper.register_action(