Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/Levitanus/rea-rs
Browse files Browse the repository at this point in the history
  • Loading branch information
Levitanus committed Mar 31, 2024
2 parents dc46eae + edfce25 commit ffc4728
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -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);
@@ -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(
4 changes: 2 additions & 2 deletions rea-rs/src/lib.rs
Original file line number Diff line number Diff line change
@@ -38,7 +38,7 @@
//!
//! #[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);
@@ -75,7 +75,7 @@
//!
//! #[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(

0 comments on commit ffc4728

Please sign in to comment.