Skip to content

Commit

Permalink
Merge pull request #2 from smoothdeveloper/patch-1
Browse files Browse the repository at this point in the history
Update README.md
  • Loading branch information
Levitanus authored Nov 22, 2023
2 parents 083feb3 + 3c3df26 commit 9297d93
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 9297d93

Please sign in to comment.