From c67ce4702609204bab78b872aa2ba28af89a032f Mon Sep 17 00:00:00 2001 From: onyx-and-iris Date: Fri, 18 Nov 2022 14:52:28 +0000 Subject: [PATCH] pass payload for call_vendor_request patch bump --- lib/obsws/req.rb | 5 ++++- lib/obsws/version.rb | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/obsws/req.rb b/lib/obsws/req.rb index c97602b..2b33859 100644 --- a/lib/obsws/req.rb +++ b/lib/obsws/req.rb @@ -77,7 +77,10 @@ module OBSWS end def call_vendor_request(name, type_, data = nil) - call(requestType, requestData) + payload = { vendorName: name, requestType: type_ } + payload[:requestData] = data if data + resp = call("CallVendorRequest", payload) + Mixin::Response.new(resp, resp.keys) end def get_hotkey_list diff --git a/lib/obsws/version.rb b/lib/obsws/version.rb index 9cd2216..013e000 100644 --- a/lib/obsws/version.rb +++ b/lib/obsws/version.rb @@ -11,7 +11,7 @@ module OBSWS end def patch - 2 + 3 end def to_a