Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
`Reaper::load` should be `Reaper::init_global` AFAIU.
  • Loading branch information
smoothdeveloper authored Nov 22, 2023
1 parent 083feb3 commit 3c3df26
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ use std::error::Error;

#[reaper_extension_plugin]
fn plugin_main(context: PluginContext) -> Result<(), Box<dyn Error>> {
Reaper::load(context);
Reaper::init_global(context);
let reaper = Reaper::get_mut();
let message = "Hello from small extension";
reaper.show_console_msg(message);
Expand Down Expand Up @@ -72,7 +72,7 @@ fn my_action_func(_flag: i32) -> Result<(), Box<dyn Error>> {

#[reaper_extension_plugin]
fn plugin_main(context: PluginContext) -> Result<(), Box<dyn Error>> {
Reaper::load(context);
Reaper::init_global(context);
let reaper = Reaper::get_mut();

let action = reaper.register_action(
Expand Down

0 comments on commit 3c3df26

Please sign in to comment.