mirror of
https://github.com/onyx-and-iris/voicemeeter-rb.git
synced 2026-04-17 08:33:31 +00:00
check if method exists for scene
upate Gemfile
This commit is contained in:
@@ -2,4 +2,4 @@
|
||||
|
||||
source "https://rubygems.org"
|
||||
|
||||
gem "obsws", "~> 0.1.3"
|
||||
gem "obsws", "~> 0.3.0"
|
||||
|
||||
@@ -44,7 +44,9 @@ class Main
|
||||
def on_current_program_scene_changed(data)
|
||||
scene = data.scene_name
|
||||
puts "Switched to scene #{scene}"
|
||||
send("on_#{scene.downcase}")
|
||||
if respond_to?("on_#{scene.downcase}")
|
||||
send("on_#{scene.downcase}")
|
||||
end
|
||||
end
|
||||
|
||||
def on_exit_started
|
||||
|
||||
Reference in New Issue
Block a user