From 3c3df26d25987d886c0a491ab17419e70a552423 Mon Sep 17 00:00:00 2001 From: Gauthier Segay Date: Wed, 22 Nov 2023 16:45:21 +0100 Subject: [PATCH] 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(