diff --git a/click_noise.wav b/click_noise.wav new file mode 100644 index 0000000..43780d6 Binary files /dev/null and b/click_noise.wav differ diff --git a/src/hooks.cpp b/src/hooks.cpp index 4c7e59c..bc3d308 100644 --- a/src/hooks.cpp +++ b/src/hooks.cpp @@ -4,6 +4,11 @@ #include "recorder.hpp" #include +#include //For clicks +#pragma comment(lib, "winmm.lib") + +bool clicks_on = true; + // yes these are global, too lazy to store them in replaysystem or smth // not like theyre used anywhere else atm bool g_disable_render = false; @@ -85,7 +90,15 @@ bool _player_button_handler(bool hold, bool button) { } void Hooks::PlayLayer_pushButton(gd::PlayLayer* self, int idk, bool button) { - if (_player_button_handler(true, button)) return; + if (_player_button_handler(true, button)) { + + // Click Noise - By 1Codealot + if (clicks_on){ + PlaySound("../click_noise.wav", NULL, SND_FILENAME); + } + + return; + } orig<&PlayLayer_pushButton>(self, idk, button); } diff --git a/src/version.hpp b/src/version.hpp new file mode 100644 index 0000000..f47dea3 --- /dev/null +++ b/src/version.hpp @@ -0,0 +1,3 @@ +#pragma once + +constexpr auto REPLAYBOT_VERSION = "v1.5.0-9bb45e2";