From 8469351ddef20166468a607dd515520ee9cbd408 Mon Sep 17 00:00:00 2001 From: onyx-and-iris Date: Sat, 29 Jun 2024 05:27:23 +0100 Subject: [PATCH] add BASICX64 and BANANAX64 to KindEnum upd {Base}.run_voicemeeter launch x64 client for all kinds if OS_BITS == 64 patch bump --- lib/voicemeeter/base.rb | 4 ++-- lib/voicemeeter/kinds.rb | 2 ++ lib/voicemeeter/version.rb | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/lib/voicemeeter/base.rb b/lib/voicemeeter/base.rb index 069b951..4e50db8 100644 --- a/lib/voicemeeter/base.rb +++ b/lib/voicemeeter/base.rb @@ -65,8 +65,8 @@ module Voicemeeter def run_voicemeeter(kind_id) kinds = { - basic: Kinds::KindEnum::BASIC, - banana: Kinds::KindEnum::BANANA, + basic: (Install::OS_BITS == 64) ? Kinds::KindEnum::BASICX64 : Kinds::KindEnum::BASIC, + banana: (Install::OS_BITS == 64) ? Kinds::KindEnum::BANANAX64 : Kinds::KindEnum::BANANA, potato: (Install::OS_BITS == 64) ? Kinds::KindEnum::POTATOX64 : Kinds::KindEnum::POTATO } if caller(1..1).first[/`(.*)'/, 1] == "login" diff --git a/lib/voicemeeter/kinds.rb b/lib/voicemeeter/kinds.rb index bfca39f..1f41055 100644 --- a/lib/voicemeeter/kinds.rb +++ b/lib/voicemeeter/kinds.rb @@ -6,6 +6,8 @@ module Voicemeeter BASIC = 1 BANANA = 2 POTATO = 3 + BASICX64 = 4 + BANANAX64 = 5 POTATOX64 = 6 end diff --git a/lib/voicemeeter/version.rb b/lib/voicemeeter/version.rb index 7e42095..512e779 100644 --- a/lib/voicemeeter/version.rb +++ b/lib/voicemeeter/version.rb @@ -11,7 +11,7 @@ module Voicemeeter end def patch - 0 + 1 end def to_a