From 70ae5df91f507c8f0a13e5c8fe521c064cbba8b1 Mon Sep 17 00:00:00 2001 From: tmarenko Date: Sat, 20 May 2023 22:04:42 +0400 Subject: [PATCH] unmute gently --- source/main.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/source/main.cpp b/source/main.cpp index 97c4a11..5aabe72 100644 --- a/source/main.cpp +++ b/source/main.cpp @@ -9,6 +9,8 @@ #include #include "tesseract.h" #include "config.h" +#include +#include typedef struct GenshinWindowInfo { @@ -269,13 +271,14 @@ int PaimonShutUp() { bool isPaimonSpeaking = IsPaimonSpeaking(paimonName); if (isPaimonSpeaking && !paimonWasHere) { paimonWasHere = true; - std::cout << "Paimon, shut up!" << std::endl; SetMuteGenshin(isPaimonSpeaking); + std::cout << "Paimon, shut up!" << std::endl; } if (!isPaimonSpeaking && paimonWasHere) { + std::this_thread::sleep_for(std::chrono::milliseconds(250)); paimonWasHere = false; - std::cout << "Unmuting the game." << std::endl; SetMuteGenshin(isPaimonSpeaking); + std::cout << "Unmuting the game." << std::endl; } } DestroyTesseract();